Hi all,
I am trying to build a flow that received 3 .PDF documents
1. A100.pdf
2. B200.pdf
3. C300.pdf
A100.pdf is later used with the AI modal to extract information, and the initial email itself is being exported, converted and saved as a PDF which will also be attached. So, in total my last 'Send an email' action needs to have 4 attachments - Exported Email.pdf, A100.pdf, B200.pdf and C300.pdf.
I have only managed to get A100.pdf and Exported Email.pdf to attach successfully. I tried looping through all of the attachments and appending them to an Array variable - however the received email had corrupted PDFs and/or blank white pages
My flow is as follows:
1. When a new email arrives in a shared mailbox (V2)
2. Export email (V2)
3. Create file
4. Convert file
5. Save to PDF
6. Get file content (steps 2-6 are used to save the email as PDF and attach it later)
7. Apply to each (attachments from the trigger)
8. Condition (checks for attachment name A100.pdf)
9. Get attachment
10. Extract information from documents
11. Compose email body using data from step 10.
12. Send an email (V2)