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
Esther Thomas 2Esther Thomas 2 

workflow question in regards to dynamic recipient

Hi Everyone,
 I'm not even sure if workflow is the right solution here. After a record is inserted/updated, I want to send out an email.
I started creating a workflow but soon realized that when the workflow condition is met, the email recipient is not a contact or user in sfdc. it's the email that's in the custom field of the record that got inserted (lookup field). Is there anyway for me to extract that email from the associated created/updated record and send the email to that email address?
If I can't do this out of the box with workflows, is there a way I can trigger the email from an apex trigger that leverages the existing email template?