Jump to content

50K + Members, query for Members that have any Email notification


Recommended Posts

Over 20 years of use, across the member population (50K) some have Email set as a form of notification.  1000's are stale addresses.

With 50K users, I'm not going to manually go through a subset through ACP to flip buttons.

What is the relationship (ERD-wise) in the schema that I can query to "find member names who have email notification enabled"

I need that list (potentially 1000's) so I can square it with SMTP errors for stale addresses and do some bulk-wise setting.

select M.name, M.email
from core_members M, ....
where ....

 

Link to comment
Share on other sites

Thanks for posting!

Unfortunately, this issue is beyond the scope of our technical support. 👩‍💻

Our technical support is happy to help you with the Invision Community platform, but we're unable to help with things like server management, theme questions and modifications.

I've moved this to our Community Support area where other Invision Community owners will see it and help where they can.

Link to comment
Share on other sites

Nevermind, I think I found the linkage:

 

select M.name, M.email
from ibf_core_members M
where exists (select P.notification_key
from ibf_core_notification_preferences P
where P.member_id = M.member_id and
 P.preference = 'email')

I can work it from this.

Edited by sibomots
Link to comment
Share on other sites

A little better query so the admin can focus on the `preference_key` to examine later:

select M.name, M.email, PP.notification_key, PP.preference
from core_members M, ibf_core_notification_preferences PP
where  PP.member_id = M.member_id
and exists (select P.notification_key
from core_notification_preferences P
where P.member_id = M.member_id and
 P.preference = 'email')

 

Link to comment
Share on other sites

On 7/9/2022 at 4:46 PM, sibomots said:

A little better query so the admin can focus on the `preference_key` to examine later:

select M.name, M.email, PP.notification_key, PP.preference
from core_members M, ibf_core_notification_preferences PP
where  PP.member_id = M.member_id
and exists (select P.notification_key
from core_notification_preferences P
where P.member_id = M.member_id and
 P.preference = 'email')

 

 

I was looking for something like this.. Thanks for sharing. 

On 7/9/2022 at 4:22 PM, Jim M said:

Thanks for posting!

Unfortunately, this issue is beyond the scope of our technical support. 👩‍💻

Our technical support is happy to help you with the Invision Community platform, but we're unable to help with things like server management, theme questions and modifications.

I've moved this to our Community Support area where other Invision Community owners will see it and help where they can.

Is their any IPS document  -  which shares DB mapping? 

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...