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 / Email attaches multipl...
Power Automate
Suggested Answer

Email attaches multiple copies of files uploaded to MS Form

(0) ShareShare
ReportReport
Posted on by 4
Hi there,
 
I have created a flow that attaches files uploaded to an MS Form into an email. However, if one file is uploaded one copy is attached to the email, if two files are uploaded two copies of each file are attached to the email, if three files are uploaded three copies of each file are attached to the email and so on.
 
Can you identify where the problem lies in my flow below, and what control do I need to insert / remove to make it just attach one copy of each file to the email?
 
I am very much a novice when it comes to Power Automate, so please bear that in mid with your response :)
 
Thanks for your help.
 
 
                      1                                                            2                                                             3
Categories:
  • Hardesh15 Profile Picture
    7,087 Super User 2024 Season 1 on at
    You need to use one drive action - Get file content using path though you have used SharePoint action. For more help see this-https://gopenly.in/how-to-store-microsoft-forms-responses-in-a-sharepoint-list/
  • creativeopinion Profile Picture
    10,508 Moderator on at
    @MN-02011024-0 You be interested in this YT Tutorial:
     
    How to Get Microsoft Form File Uploads Attached to an Email 📧
    Are you stumped when it comes to handling a response without any file uploads?

    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.

    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!
    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
  • MN-02011024-0 Profile Picture
    4 on at
     
    Hi, thanks for the reply I actually found your YT video after posting this question and I have now been able to send emails with files attached, which I could not have done without finding your excellent video!
     
    I still have an issue with the flow in that if there are no files attached the flow fails at the Parse JSON step because it doesn't handle a null value. I have tried to insert a condition but so far it is beyond me, is that something you have addressed before?
     
    Thanks very much for your kind assistance.
     
  • Suggested answer
    wyattdave Profile Picture
    493 Moderator on at
    If your parseJSON is failing due to there being no attachments you need to update the schema to remove attachments from the 'required' key. Its normally at the bottom of the schema.
  • MN-02011024-0 Profile Picture
    4 on at
    @wyattdave Thanks, that sounds like a straightforward solution. This is the required part of my schema:
     
    "required": [
                "name",
                "link",
                "id",
                "type",
                "size",
                "referenceId",
                "driveId",
                "status",
                "uploadSessionUrl"
     
    What would I delete to allow the Parse JSON to complete where there are no files attached?
     
    Thanks very much for your help :)
     
     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 245 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 233 Super User 2026 Season 2

#3
Valantis Profile Picture

Valantis 136 Super User 2026 Season 2

Last 30 days Overall leaderboard