In this article, I will create a flow send uploaded files from MS Form as email attachments
Step-by-Step Guides
Create the Microsoft Form
- Go to Microsoft Forms
2. Create a new form

3. Add questions

4. Add a “File Upload” question
- Choose “Allow only specific file types” > For example Image, Video (optional)
- Enable “Allow multiple files”
- Set max number of files as needed (e.g., 3)

5. Publish and test your form
📌 Result: Files uploaded via Form will be stored in your OneDrive/SharePoint, depending on where the Form is hosted (personal vs. group form)

Create Power Automate Flow
- Use trigger “When a new response is submitted” (Microsoft Forms)

2. Form Id: Select your form

3. Use action “Get response details”
- Form Id: Select your form
- Response Id: Select dynamic content “Response Id”

4. Use “Parse JSON”
- Content: Select dynamic content “your file upload question”
- Schema: Write as per below code block
{
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"link": {
"type": "string"
},
"id": {
"type": "string"
}
},
"required": [
"name",
"link",
"id"
]
}
}

5. Use “Initialize variable”
- Name: AttachmentArray
- Type: Array

6. Use “Apply to each”
- Select dynamic content value from Parse JSON

7. Use “Gett file content using path”
- File Path: Add your MS form file path with dynamic content “Body name” from Parse JSON

8. Use “Append to array variable”
- Name: Select “AttachmentArray”
- Value: Write as per below code block
{
"Name": @{items('Apply_to_each')?['name']},
"ContentBytes": @{base64(body('Get_file_content_using_path'))}
}

9. Use “Send an email (V2)
- To: Your desired recipient
- Subject: Text as needed
- Body: Include any details you want from the form
- Attachment: Click “Swith to input entire array”, then use “AttachmentArray” as the attachments input

Test the flow
Submit form (upload 2 files)

Flow run successfully

Check email attachment



Leave a comment