function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
mitsvikmitsvik 

how to Send email to multiple users using email when case is created on updated for an ACCOUNT

We want to be able to assigned someone as an "interested party" to an account, and then notify that interested party when someone else is the cases owner of a case for that account.
Can be any number of emails on the account layout).

The 'interested party'  should be at the account level. . Maybe there could be a box where emails addresses for interested parties could be entered and then a flag to say notify them or not.
 but generally we want to be able to assigned someone as an "interested party" to an account, and then notify that interested party when someone else is the cases owner of a case for that account.

We would only want management to assign someone as a interested party."



Approach: Creat a object called interested party and MD realtion to account. add that to related list of account. Have user enter any # of emails....and create a trigger on case to send email when after insert and after update...

some questions i my mind....how can enter mutiple users ..should i do a look up to users on the intrested party object...even then how can i achive more than one email?

also this is not possible via workflow as i will have list of users...

if trigger is the option...how can i get the email from user and associate that to case?
Ajay K DubediAjay K Dubedi
Hi mitsvik,

I suggest to go through the below links, It may help you to get the solution.

https://help.salesforce.com/articleView?id=caseteam_setup_email_alerts.htm&type=5 (https://help.salesforce.com/articleView?id=caseteam_setup_email_alerts.htm&type=5)

https://support.yet-another-mail-merge.com/hc/en-us/articles/212124585-Send-email-to-multiple-recipients-at-the-same-time

https://gist.github.com/tontonleric/4ed8d10d6610dfe4bbde27980627827f



I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,
Ajay Dubedi
www.ajaydubedi.com