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
Sascha LöfflerSascha Löffler 

Flow to create EmailMessage and EmailMessageRelation for Campaign Members

Hi all, 

i actually send an Email using a Flow and Process Builder for my campaign members. 

Actually i fastlookup all campaign members with campaign id = var_Campaign which is my input variable for that flow and i save them in the sObject Collection Variable. 

Now i need all contacts within the sObject Collection Variable, to create the e-mail message for them. After creating the email message i need these contact ids and the email message ids to create the EmailMessageRelation. 

Can you help me out here? 

Best regards
Sascha