+ Start a Discussion
ashok  45ashok 45 

Refer Parent Owner Email id and Owner Manager EMail id in Flows

Hi All,

   Here , I have a scenario like whenever Child__c object Status__c='Closed', i want to send email to 
   Parent__c owner and Parent__c owners manager.
   the email template looks like below

 
  
   To : Parent__c owner email(email id of owner)
   cc : Parent__c owner manager email(email id of manager of owner)
   Subj: child {!child.name} closed
   body: ---text--- and some merge fields

   My sol : (can you point if am wrong)
   
          ->(1). I going through process builder
          ->(2). calling flow(through flow am calling apex class. In apex class i want to refer 
                 Parent__c owner email id and Parent__c owner manager email id in Email template).

             Let me know, is there any better solution rather than this? if it is good solution

     Could you please tell me how to get the Parent__c owner email id and Parent__c owner manager
     Email id in FLOWS(I am New to FLOWS). i want to refer these fields in templete whicih i written in apex class.
Tolga SunarTolga Sunar
Easily doable with a process&flow pair. And you should switch to this solution.

Set your process builder, and call Flow as the immediate action. Your flow is going to include only a Send Email element. Though you need to pass many parameters into your flow from process builder:
  • Parent record's Owner's Email
  • Parent record's Owner's Manager's Email
  • Child record's name
  • Merge fields you are using in the email body
  • Additional parameters, if needed.
You can create a Text Template resource for Email body, then assign it to the Send Email element.