Emailing Files and Attachments
Hello - I am looking for some help with a Screen Flow which does the following
1) Launched from Button on the Program Host Site object
2) Get Program Host Site (Custom Object)- Record ID and Program Term
2) Get Participant Records (Custom Object and selected by common Program Term of Host Site)
3) Get PDF Files attached to the Participant Records
4) Send Email to Contact on the Program Host Site object including a table of fields from the Participant Records and attach the PDF files.
Attached is the flow I have so far. It is successful except for attaching the PDF’s. I have tried to get the PDFs before the loop and in the loop but think I am not doing it correctly.
I found this resource - https://unofficialsf.com/using-files-and-attachments-in-flow/ which shows how to get just one records PDF. But I need multiple PDF’s from multiple records. Do I need to assign the PDFs to a variable or ???? How do I make this work.
The link above says “The collection of Content Document Link Ids can be passed straight on to Send Rich Email, using the ContentDocumentAttachments input attribute, and the files will be sent as attachments with the email” . Hoping someone will have a solution I can follow!