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

Notifications

Announcements

Community site session details

Community site session details

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

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

 

 

Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 793 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 333 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard