跳到主要内容

1 篇博文 含有标签「attachment processing」

查看所有标签

在 Power Automate 中将电子邮件正文和所有附件转换为一个合并的 PDF 文件:Outlook + PDF4me 的 7 步工作流程

· 阅读需 27 分钟
SEO and Content Writer

以电子邮件为主导的工作流程中最痛苦的部分不是电子邮件本身,而是…… 以及随之而来的一切邮件正文包含上下文信息(谁发的、为什么发的、该怎么做),附件包含相关文件(发票、表格、已签署的合同),将它们分开存储意味着以后你需要点击三次才能重建邮件。本教程将构建一个精确的模式。 动力自动化PDF4me 转换为 PDFPDF4me 合并多个 PDF 文件前景Dropbox以及一个“应用到每个”循环。七个流程操作。一封收到的电子邮件被接收。一个合并后的 PDF 文件被发送出去,先发送正文,然后逐个发送附件,自动添加时间戳并放入您的存档文件夹。

流程概览
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).