I want to use an email template when I send an email via a flow. I am sending the email to users who are following a custom object's record. The email is successfully sending when I use the flow's simpleemail feature. I am not sure how to specify what email I want the template to go to when using an email alert. Is what I am trying to do possible? I feel that I should specify the project record's id in the input field for the email action because I need to display information about the project record in the body of the email.
EDITED 11/12/2019 1:17pm PST
To solve this usecase, query the
EntitySubscription Object to gather the users who should receive the email and leverage the Flow Core Action: Send email (instead of the Simple Email)
Addition by Kleinhomer 11/13/19 3:45 PM EST: Because the custom object that I made the email template off of didn't have an email address associated with it to indicate who I wanted to send the email to (record's follower), I added an email address field to the custom object. When I looped through the followers of the custom object's record, I temporarily updated the email field on the record while in the loop. This allowed me to send the email template to each individual follower.
Use invokable apex to send the email. The flow should pass the template name and the collection of users and apex would fire the
sendEmail() function from the