
Announcements
Hi,
I want to create a power automation process for when you submit a form within power apps, and this creates a PDF but also with the form it has attachments and I want to combine the two PDFs and attachments and output this into one email. For example, currently, in my power automate I have two separate processes which send an email to the user; one is the file content of the pdf, and the other is the attachments from the form. Is there a way I can combine the two and have it attached as a file content to one email process instead of making two processes and with two separate emails? Below is what I currently have.
Please share some advice and resources for helping me put both PDFs and Attachments from the form into one email process.
Thank you
Hi @harryh6 ,
I made a sample for you.
Create a form, connect data to a list in SharePoint and click the button to submit data and trigger a flow.
SubmitForm(Form5);Set(A,Form5.LastSubmit.ID);'PowerApp->Getitem'.Run(A)
Create a flow, triggered by powerapp, that uses the ID of the last submit item.
Get the item with id, and create an array variable.
Gets attachments in item. Then get the file content that was converted to PDF (replace it with another file here).
Gets the attachment content.
Use 'Apply_to_array' to add attachments to the variable 'attachments' in the following format.
The PDF file is then appended to the variable in the same format.
Set attachments and other information, save the flow, and run it.
Best Regards,
Wearsky