web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / how to combine both pd...
Power Apps
Answered

how to combine both pdf and attachments into one email in power automate

(0) ShareShare
ReportReport
Posted on by 19

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

 

 

Power Automate 2.JPG
Power automate 1.JPG
Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    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)

    vxiaochenmsft_0-1667895367222.png

     

    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.

    vxiaochenmsft_1-1667895367232.png

     

     

    Gets attachments in item. Then get the file content that was converted to PDF (replace it with another file here).

    vxiaochenmsft_2-1667895367238.png

     

     

    Gets the attachment content.

    vxiaochenmsft_8-1667895527010.png

     

     

    Use 'Apply_to_array' to add attachments to the variable 'attachments' in the following format.

    vxiaochenmsft_4-1667895367256.png

     

     

    The PDF file is then appended to the variable in the same format.

    vxiaochenmsft_5-1667895367262.png

     

     

    Set attachments and other information, save the flow, and run it.

    vxiaochenmsft_6-1667895367268.png

     

    vxiaochenmsft_7-1667895367279.png

     

    Best Regards,

    Wearsky

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 519 Most Valuable Professional

#2
11manish Profile Picture

11manish 489

#3
Haque Profile Picture

Haque 327

Last 30 days Overall leaderboard