Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Convert form response to PDF AND send all uploads from the form as attachments in the same email

(0) ShareShare
ReportReport
Posted on by

Hi,

 

I have created a flow to turn a form submission into a PDF and attach it to an email - this worked fine by itself

 

I also need to to have all documents uploaded to the form to be attached to the email - I can also get this working fine by itself.

 

I can't work out how to get the PDF and the uploads all on to one email as attachments. Please can you help? 

 

thanks

Anna

 

A_Wilc_0-1710502304632.pngA_Wilc_1-1710502361800.pngA_Wilc_2-1710502447261.png

 

  • Andrew_J Profile Picture
    1,962 Super User 2025 Season 1 on at
    Re: Convert form response to PDF AND send all uploads from the form as attachments in the same email

    @A_Wilc 

     

    That was helpful, I think you need to look at the following:

     

    Andrew_J_0-1710514858101.png

    The above is incorrect, you need to change the body to file content.  An also look at the dynamic content for for the name.  The below should help.

    Andrew_J_1-1710515211516.png

     

    Hoefully this should take care of things maybe you can go and have drink later if you get lots of green ticks.

     

    Regards,

     

    Andrew

     

     

     

     

  • A_Wilc Profile Picture
    on at
    Re: Convert form response to PDF AND send all uploads from the form as attachments in the same email

    Thank you for your patience, I'm self taught and new at this so i just don't have the foundation knowledge.

     

    "So the flow runs okay apart from the attachment issue.  When the flow runs what information is displayed in the APPEND TO ARRAY VARIABLE item.  Is this gathering all the files you expect such as the uploads and PDF.  Or are any missing."

     

    Yes the flow runs fine apart from the attachment issue. I used append to array variable to get the uploads from the form only - this works fine if I just ask the flow to attach the uploads to the email. I just don't know how to also get my PDF onto the email. 

     

    Should i be using compose to get the PDF and uploads together somehow, then i could use 'outputs' in the attachment section of the email???

     

     

     

    A_Wilc_0-1710513669645.png

     

    Thanks

    Anna

  • Andrew_J Profile Picture
    1,962 Super User 2025 Season 1 on at
    Re: Convert form response to PDF AND send all uploads from the form as attachments in the same email

    @A_Wilc 

     

    I understand I think we are getting there slowly. 

     

    So the flow runs okay apart from the attachment issue.  When the flow runs what information is displayed in the APPEND TO ARRAY VARIABLE item.  Is this gathering all the files you expect such as the uploads and PDF.  Or are any missing.

     

    Looking at other posts on this issue, the right way to go is the first image above, but that misses the PDF.  Again is the PDF in the OneDrive folder.  Are all the files you are expecting to see in folder, there.  I am only asking to confirm this in my mind.

     

    Regards,

     

    Andrew

  • A_Wilc Profile Picture
    on at
    Re: Convert form response to PDF AND send all uploads from the form as attachments in the same email

    THanks,

     

    The flow itself it working fine, it's just getting both kinds of attachments on to the one email.

     

    I think my problem is with this section of my 'Send an email V2' action. I can do it this way (see image below) and the email sends perfectly with the attachments from the file upload section of the form attached 

    A_Wilc_0-1710511205749.png

     

     

    Or i can do it this way:

    A_Wilc_1-1710511301466.png

    And the email sends perfectly with the PDF attached by getting the dynamic content from the 'Convert File' action.

     

    How can I do both, please?

     

    Thanks so much, your help is really appreciated

    Anna

  • Andrew_J Profile Picture
    1,962 Super User 2025 Season 1 on at
    Re: Convert form response to PDF AND send all uploads from the form as attachments in the same email

    @A_Wilc 

     

    I understand now so the the form has a file upload section that then stores these in OneDrive of you or your other user.  The form responce PDF file is also saved to the same location.  I am assuming that all of this is being undertaken in one flow.  I think your flow needs to stop there.

     

    I think from your post you know how to get the multiple attachments.  A seperate flow will be required to send them out.  If you need help then the below might help:

     

    https://www.youtube.com/watch?v=9G9GNeknemg

     

    However I can see a problem, the second flow will start the second a file hits OneDrive so will send muliple emails.  So do we stick with one flow and put a large delay in say five minutes between the uplaod of the files and PDF creation to allow the files to be written to OneDrive.  Then maybe delete the files from OneDrive once they have been sent so the directory is clear for the next submission of the form.  Again will the form be filled out in quick sucession or will there be minutes, hours or days between its use.

     

    Anyway I hope that helps.

     

    Regards,

     

    Andrew

  • A_Wilc Profile Picture
    on at
    Re: Convert form response to PDF AND send all uploads from the form as attachments in the same email

    Hi Andrew,

     

    Thank you for getting back to me.

     

    I need the PDF and all attachments uploaded to the form to be attached to an email that goes to one recipient.

     

    So when you have asked the following:

    So you want to attach ONLY the PDF file that was created by the submission of the form to an email and send to one or muliple recipents.  This is what you need some help with.

     

    No, I want to attach the PDF file created by the form submission and any attachments that were uploaded as part of the form to a single email going to one person.

     

    I hope that makes sense

     

    Thanks

    Anna

  • Andrew_J Profile Picture
    1,962 Super User 2025 Season 1 on at
    Re: Convert form response to PDF AND send all uploads from the form as attachments in the same email

    @A_Wilc 

     

    Hopefuly we can resolve this, you second paragraph reads:

     

    I also need to to have all documents uploaded to the form to be attached to the email - I can also get this working fine by itself.

     

    So the above is basically saying the PDF (one file) created by the completion of the form is uploaded to OneDrive or SharePoint.   This works fine.

     

    Now on to your thrid paragraph

     

    I can't work out how to get the PDF and the uploads all on to one email as attachments.

     

    So you want to attach ONLY the PDF file that was created by the submission of the form to an email and send to one or muliple recipents.  This is what you need some help with.

     

    Please let me know if that is your requirment so I can help you more.

     

    Regards,

     

    Andrew

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1