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 / Save MS Forms Attachme...
Power Automate
Suggested Answer

Save MS Forms Attachment to a SharePoint Folder

(0) ShareShare
ReportReport
Posted on by 5
Hi,
 
I am trying to create a flow that will be triggered when a MS Forms will be filled to do the following:
1. Populate the inputs in a MS Doc file (working fine).
2. Save the attachment from MS Forms to a folder in Sharepoint (having error).
 
Following is what I did for step # 2 and it seems to be not working. Any help would be greatly appreciated :)
 
Screenshot 2026-06-17 084029.png
I have the same question (0)
  • Suggested answer
    David_MA Profile Picture
    14,835 Super User 2026 Season 1 on at
    There are probably other ways to do this, but the first thing I do is parse the JSON of the attachment question in order to get the name:
     
    You can use the following for the scheme since it should be consistent in MS Forms:
     
    {
        "type""array",
        "items": {
            "type""object",
            "properties": {
                "name": {
                    "type""string"
                },
                "link": {
                    "type""string"
                },
                "id": {
                    "type""string"
                },
                "type": {},
                "size": {
                    "type""integer"
                },
                "referenceId": {
                    "type""string"
                },
                "driveId": {
                    "type""string"
                },
                "status": {
                    "type""integer"
                },
                "uploadSessionUrl": {}
            },
            "required": [
                "name",
                "link",
                "id",
                "type",
                "size",
                "referenceId",
                "driveId",
                "status",
                "uploadSessionUrl"
            ]
        }
    }
     
    • You then use the Body from the Parse JSON action in the apply to each
    • I use a condition to check that the file size is greater than 0 as I have had instances where a 0-byte file gets attached and then the flow fails
    • For the get file content action, use the id from the Parse JSON action
    • Then in the create file action, use the name from the Parse JSON action
    Some minor adjustments may be needed as it appears your MS Forms form is saved in SharePoint. All of mine are in OneDrive.
     
  • Ellis Karim Profile Picture
    12,122 Super User 2026 Season 1 on at

    Please show a screen shot of the trigger.
     
    Is this a personal MS Form (where the responses are stored in your OneDrive, or is it a Group form (where the responses are stored in a SharePoint site)?
     
     
    Ellis Karim
    Ellis Karim
    elliskarim.com  |  LinkedIn  |  Bluesky
    If this solved your issue, please mark it as ✅ Accepted Answer. If it helped, feel free to give it a 🩷 Like!

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 442

#2
Vish WR Profile Picture

Vish WR 328

#3
David_MA Profile Picture

David_MA 268 Super User 2026 Season 1

Last 30 days Overall leaderboard