Convertire il corpo dell'email e tutti gli allegati in un unico PDF consolidato con Power Automate: un flusso di lavoro in 7 passaggi con Outlook e PDF4me.
· 26 minuti di lettura
La parte dolorosa dei flussi di lavoro basati sulle email non è l'email, è tutto ciò che ne consegueIl corpo contiene il contesto (chi l'ha inviato, perché, cosa fare), gli allegati contengono gli artefatti (la fattura, il modulo, il contratto firmato) e memorizzarli separatamente significa che in futuro avrai bisogno di tre clic per ricostruire il messaggio. Questa procedura dettagliata crea il modello esatto in Power Automate con PDF4me Converti in PDF, PDF4me: Unisci più file PDF, Veduta, Dropboxe un singolo "Applica" per ogni ciclo. Sette azioni di flusso. Arriva un'email. Viene inviato un PDF consolidato, prima il corpo del testo e poi gli allegati, con data e ora, e viene inserito automaticamente nella cartella di archivio.
Il flusso in sintesi
1. When a new email arrives (V3)
Outlook trigger on To [email protected]. Include Attachments Yes, Only with Attachments Yes.
2. Initialize variable
Name email, Type Array. Buffer for every PDF binary the flow produces.
3. Convert to PDF Body
PDF4me action. Content triggerOutputs body/body (the HTML body), File Name email-body.html. Returns the body as PDF.
4. Append to array (email body)
Push base64ToBinary on the converted body PDF onto the email array. This is page 1 of the final document.
5. Apply to each attachment
Loop triggerOutputs body/attachments. Convert each to PDF, then Append to array with base64ToBinary.
6. Merge multiple PDFs
PDF4me action. Body/docContent the email array, Output File Name Email Attachment Merge Output.pdf.
7. Create file
Dropbox /blog data/merge blog template/output. File Name concat(merge-, formatDateTime(utcNow(), yyyyMMdd-HHmmss), .pdf).