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 Automate / Trying to create a flo...
Power Automate
Answered

Trying to create a flow that emails attachments that were uploaded via a form

(0) ShareShare
ReportReport
Posted on by 36

Made a form to collect some data with the option of uploading attachments. Trying to create a flow that will send the data in an email and add the attachments to the email. Found various videos explaining how to do them - one appeared to be successful as it didn't contain errors. However, the email comes without the attachments. 

2024-03-20_13-37-20.jpg
Categories:
I have the same question (0)
  • creativeopinion Profile Picture
    10,508 Moderator on at

    @garyrlane You might find this YT Tutorial helpful:

    How to Get Microsoft Form File Uploads Attached to an Email 📧

     

    In this Microsoft Power Automate Tutorial I’m going to cover where file uploads from your Microsoft Forms are saved. I’ll also show you how attach the uploaded files to an email and how to dynamically name the files and customize the recipient of the email based on the selections made in your Microsoft Form. I will also cover how to handle responses that don’t include any file uploads.

     

    I’m not going to cover how to get the values from your form since I've already covered that in a different tutorial.

     

    IN THIS VIDEO:

    ‌ Two types of MS Forms

    ‌ Where Microsoft Personal (OneDrive) Form File Uploads are Saved

    ‌ Where Microsoft Group Form File Uploads are Saved

    ‌ How to Add a File Upload Question to an MS Form

    ‌ How to get a Microsoft Form ID

    ‌ How to get a Microsoft Form Response

    ‌ How to Get the Dynamic Content Microsoft Form File Upload Content

    ‌ How to handle Single and Multiple Microsoft Form File Uploads

    ‌ How to use a Scope action to Organize and Group Your Flow Actions

    ‌ How to Get the File Content from an MS Form File Upload

    ‌ How to Collect All Files Uploaded to a MS Form and Attach to an Email

    ‌ How to Handle MS Form Response When a File Isn’t Uploaded

    ‌ How to Create an Email Key

    ‌ How to Send an Email to a Specific Recipient Based on Form Selection

    ‌ How to Create a Dynamic Output Based on Form Selection

     

    Hope this helps!

    If I helped you solve your problem—please mark my post as a solution .
    Consider giving me a 👍 if you liked my response!

    👉 Level up your Power Automate skills by checking out my tutorials on YouTube
    👉 Tips and Tricks on TikTok and Instagram

  • garyrlane Profile Picture
    36 on at

    I found the video very easy to follow! I believe I followed everything to a tee, and my flow “works” error free. However, the email is coming over with the body of the message just fine (includes dynamic content), but the attachment looks like this:

    garyrlane_0-1711052649235.png

    I can open it, but have to choose what app it opens in, so if there were multiple types of docs it would not work.

     

    The attachment is just one item, regardless if there is one doc or multiple. (I don’t have a branch to distinguish between single or multiple)

     

    I don’t know if this tells you anything, but this is the result in the send an email action:

    garyrlane_1-1711052649237.png

     

     

    Any guidance or suggestions you might have would be appreciated!!

  • creativeopinion Profile Picture
    10,508 Moderator on at

    @garyrlane Great! I'm noticing a comma before the file extension which is probably the issue. You'll be to change it to a period.

  • garyrlane Profile Picture
    36 on at

    thank you! okay so it worked when i have a single file, but when i have multiple files, i'm only receiving the first one...

     

    is there a way i can share my flow with you so you could inspect the whole thing? 

  • creativeopinion Profile Picture
    10,508 Moderator on at

    @garyrlane I cover how to get the files from a question that accepts multiple files in this section. Once your flow has returned all the files uploaded you'll need to collect all the files first before you can attach them into an email. I cover how to do that in this section of the tutorial. 

  • garyrlane Profile Picture
    36 on at

    I will check that out - thanks! 

     

    Curiously it does appear that in the last run of the flow which had three docs, that it did find three, so I assume the issue is after that..

     

    garyrlane_0-1711131834147.png

     

  • garyrlane Profile Picture
    36 on at

    I went back through the tutorial to double check I had everything correct. It appears I do, but only one file makes it to the email 😒

  • creativeopinion Profile Picture
    10,508 Moderator on at

    @garyrlane Can you upload a screenshot of your flow? 

  • garyrlane Profile Picture
    36 on at

    I don't have separate branches for single or multiple uploads

     

    garyrlane_0-1711138276405.png

     

    garyrlane_1-1711138284787.png

    garyrlane_2-1711138378865.png

     

    garyrlane_3-1711138387189.png

     

     

  • Verified answer
    creativeopinion Profile Picture
    10,508 Moderator on at

    @garyrlane Separate branches isn't necessary. Doing that can speed up your flow if you have multiple file upload questions. Since you are expecting multiple files. The Compose - Upload Filename action should be nested inside the Apply to Each action. 

     

    If you refer to this section of my YT Tutorial you'll see that I add an Apply to each action right after the Compose action that stores the file upload MS form response output. If you hover over this action it'll display the Compose action you've inserted. Can you take a screenshot of that? It should be referencing the Compose - Upload action. 

    creativeopinion_0-1711139617015.png

    If you refer to this section of my YT Tutorial you'll see that I add these actions I've outlined inside the Apply to Each action because you need to loop through each attachment returned to collect the attachments. Currently, you have them outside of your Apply to each loop which is why you are only returning a single attachment.

    Tip: Test your flow at each stage before you try to build out the entire flow. This helps you to understand what's going on in your flow and it also makes troubleshooting easier.

     

    creativeopinion_1-1711139704339.png

     

    Hope this helps!

    If I helped you solve your problem—please mark my post as a solution .
    Consider giving me a 👍 if you liked my response!

    👉 Level up your Power Automate skills by checking out my tutorials on YouTube
    👉 Tips and Tricks on TikTok and Instagram

     

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 784

#2
Valantis Profile Picture

Valantis 581

#3
Haque Profile Picture

Haque 545

Last 30 days Overall leaderboard