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
Developer.mikie.Apex.StudentDeveloper.mikie.Apex.Student 

Email to all contacts of an Account Trigger

Hey there,

I have a custom object Destiny products which is a child of accounts. I would like to send an email to all contacts associated with the account when the Destiny products stage field reaches level 4. i attempted to do this with a workflow rule but it would not let me. Is it possible to do with a apex trigger?

Any help would be appreciated.
Best Answer chosen by Developer.mikie.Apex.Student
Niket SFNiket SF
Yup via,

 Trigger is possible. You need to write trigger on Destiny Products. when the stage field is getting updated then you can respective account and then find all contacts related with account and send Email.

Thank you
Niket 

All Answers

Niket SFNiket SF
Yup via,

 Trigger is possible. You need to write trigger on Destiny Products. when the stage field is getting updated then you can respective account and then find all contacts related with account and send Email.

Thank you
Niket 
This was selected as the best answer
Developer.mikie.Apex.StudentDeveloper.mikie.Apex.Student
Thank you so much for the answer. I was wondering if you would be able to provide some example code on how this might be set out?