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
vleandro09vleandro09 

Account Team Notifications from Custom Objects

I realize that currently Workflows will not allow you to notify Account Teams from a custom object that has a lookup to Accounts. 

 

However, is there a way to do this "programatically" via Apex or some other method?  We're looking at a situation where I can have many items in my custom object all pointing to a single Account and based on some criteria we want to notify the Account Team for that given Account.

 

I've looked around and haven't found any sample code and was curious if anyone had come across this or have any suggestions.

 

Thank you!

V

Dev@Force.ax647Dev@Force.ax647

Yes you can write trigger on your custom object and then get account team members for looku account and then send email or any notification to account team.

Vinit_KumarVinit_Kumar

Hi,

 

You can create a Trigger on your custom object and can get the ids of Account Team mambers with the help of AccounId(Account lookup) and then,you can send email notification to them.