Skip to content
home

Microsoft Forms Attachments in Email with Power Automate

Microsoft Forms lets people upload files, but the notification email only gives you a link, and the files sit in the form owner's OneDrive. If the office needs the actual photos, invoices or CVs in an inbox, a short Power Automate flow can attach every uploaded file to one email. Here is the exact flow I build, step by step.

Quick answer

Use a Power Automate flow: 'When a new response is submitted', then 'Get response details', then Parse JSON on the file upload answer. In an Apply to each, use OneDrive for Business 'Get file content' with each file's id and append {Name, ContentBytes} to an array variable. Finally put that variable in the Attachments of 'Send an email (V2)'.

Daniel AwokunleDaniel AwokunleUpdated 25 November 2026 6 min read
Watch first: the whole guide in 100 secondsVideo page and transcript
Video transcript

Microsoft Forms collects the files, but the email only gives you a link. Here's how to attach them for real.

Meet Hannah Brooks, office manager at Ridgeline Plumbing in Denver. Her technicians upload job photos in a form. She wants them in the office inbox, attached.

First, where the files live. Uploads go to the form owner's OneDrive, in Apps, Microsoft Forms. Group forms use the group's SharePoint library.

Step one. Trigger the flow when a new response is submitted, then get the response details.

Step two. The upload answer isn't a file. It's text describing the files: name, link and id. Parse it as JSON.

Step three. Create an empty array variable called attachments.

Step four. Apply to each file: get the file content from OneDrive using its id, then append the name and content to the array.

Step five. In send an email, switch attachments to the array input and drop in the variable.

Step six. If the upload is optional, wrap it in an empty check, so a response with no files still sends.

Hannah's inbox fills with every photo, attached and named. My tip: for very large files, send the links instead.

The full flow, with every expression ready to copy, is free at winstack365.com.

1. Know where Forms keeps the uploaded files

A file upload question is only available when the form is set to 'Only people in my organization can respond', because Forms needs to know who is uploading.

For a personal form, the files are saved in the form owner's OneDrive, in Apps, then Microsoft Forms, then a folder named after the form, with a subfolder for the question. For a form that belongs to a Microsoft 365 group, they go to the group's SharePoint document library instead. That location decides which 'Get file content' action you use in step 5.

2. Start the flow from the form

  1. Create an automated cloud flow with the Microsoft Forms trigger 'When a new response is submitted' and pick your form.
  2. Add 'Get response details', choose the same form, and set Response Id to the Response Id from the trigger.

Run a test submission with two files attached now, so the next steps have real data to show.

3. Read the file upload answer as JSON

The upload question does not return files. It returns text that describes them: an array with one entry per file, including its name, link and id. Add a Parse JSON action, put the upload answer from 'Get response details' in Content, and use this schema:

{
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "name": { "type": "string" },
      "link": { "type": "string" },
      "id": { "type": "string" },
      "size": { "type": "integer" }
    }
  }
}

If you are not sure of the shape, copy the raw answer from your test run and use 'Generate from sample' instead.

4. Create an attachments array

Before the loop, add 'Initialize variable' with Name attachments and Type Array, and leave the value empty. Initialize variable must sit at the top level of the flow, not inside a loop or condition.

5. Get each file and add it to the array

Add 'Apply to each' over the Body of Parse JSON. Inside it:

  1. OneDrive for Business 'Get file content', with File set to the id from Parse JSON. For a group form, use SharePoint 'Get file content using path' with the library path instead.
  2. 'Append to array variable' on attachments, with this value:
{
  "Name": "@{items('Apply_to_each')?['name']}",
  "ContentBytes": @{body('Get_file_content')}
}

The name keeps the original file name and extension, so attachments open properly on the other end.

6. Send one email with every file attached

After the loop, add 'Send an email (V2)'. Open Advanced parameters, find Attachments, click the switch to enter the whole array, and put the attachments variable there. Add the person's name and answers from 'Get response details' to the body so the email is complete on its own.

7. Handle responses with no files

If the upload question is optional, an empty answer makes Parse JSON fail and the whole run stops. Wrap the Content in a fallback so an empty answer becomes an empty list:

if(empty(outputs('Get_response_details')?['body/r1234']), json('[]'), json(outputs('Get_response_details')?['body/r1234']))

Replace r1234 with your upload question's id, which you can see in the raw outputs of 'Get response details'. With no files, the loop simply runs zero times and the email still goes out.

Frequently asked questions

Can Power Automate send Microsoft Forms file uploads as attachments?

Yes. Parse the file upload answer as JSON, use 'Get file content' for each file's id in an Apply to each, append each file's name and content to an array variable, and put that array in the Attachments of 'Send an email (V2)'.

Where are Microsoft Forms file uploads stored?

In the form owner's OneDrive under Apps, Microsoft Forms, then a folder named after the form. For forms owned by a Microsoft 365 group, they are stored in the group's SharePoint document library.

Why does my Forms attachment flow fail when no file is uploaded?

Parse JSON cannot read an empty answer. Use an if(empty(...)) expression to turn an empty answer into an empty array, so the loop runs zero times and the flow still sends the email.

Want this done for you?

I build this for clients every week. Book a free 30-minute call and I'll tell you exactly what your team needs.

Free: the Microsoft 365 clean-up checklist

The 12 checks I run before building anything in a client's tenant: security, sharing, files and quick wins. Two pages, PDF.

Used only to send the checklist and the odd useful tip. Never shared or sold.

Daniel Awokunle · replies within a day

Tell me what's slowing your team down.

Thirty minutes, no cost, no pitch deck. You'll leave knowing exactly what to build and what it should cost.

Book a free 30-min call
  1. Step 1

    Free 30-min call

    Show me the problem. I'll tell you what I'd build and how long it takes.

  2. Step 2

    Clear quote

    A fixed price and timeline in writing, usually within a day.

  3. Step 3

    Built and handed over

    Built in your own Microsoft 365, with a walkthrough for your team.