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 uploaded files to...
Power Automate
Suggested Answer

Save uploaded files to SharePoint folder based on a selected area in Forms.

(1) ShareShare
ReportReport
Posted on by 2
Hi,
 
Without going into significant detail, I have created a reporting form for some employees in various regions where i live (over 50 of these). 
 
This first question of my form is for the person to choose the area they are reporting from.
 
I want to use that information of where to then have uploaded documents/images from a later question automatically saved to area specific folders i have created in sharepoint.
 
For example say i am in the area of West Berkshire and I tick that choice.
 
Further down I upload my photos and submit my report. I would then like those photos to save to a designated folder in my document library on sharepoint called "West Berkshire".
 
any links or sources which explain this would be greatly appreciated.
 
Thanks
Categories:
I have the same question (0)
  • Suggested answer
    trice602 Profile Picture
    16,034 Super User 2026 Season 1 on at
     
    Here's a really good example you can make your own quickly.  In this example, I am saving the form upload as a list attachment, but you could easily change the end of the flow to create file in SharePoint.
     
     
     
    The key to from Uploads is that by design they get saved to a special OneDrive folder and this is the root path:
     
    /Shared Documents/Apps/Microsoft Forms/Form to Attachment Item/File Upload/
     
    where 'Form to Attachment Item' is the Form name and
     
    'File Upload' is the name of the question
     
    You will need to find your unique path for the create file action.
     
    ---------------
     
    Your trigger is when a new form response is submitted.
     
    The first action is get response details.  You use the dynamic content from the trigger shown below.
     
     
    Next you want to parse the form responses.  The 'Content' is the question for the file uploads.  You can get the Schema by saving the flow before adding parse JSON and testing your flow/form and get the output from the 'get response details' for the file upload question.  Then paste in using the 'use sample payload to generate schema link, shown below.
     
     
    Next for your flow, you want to add the action Get file content using path. Again, before we create the file, we have to get the file content and the file is automatically saved in that special OneDrive folder.
     
     
    So your flow will look like this (I removed my list and attachment actions for the example.  When you add 'Get file content using path' action, it will wrap itself in a for each or apply to each loop because there could be more than 1 upload for the question, so for each file, get file content and create the file.
     
    My form doesn't have a location such as West Berkshire but I would use the dynamic content value for the selection and make it part of my folder path shown below.
     
    Essentially, your entire flow looks like this.
     
     

    ------------------------------------------------

     

     

    ⭐ If this was helpful, please like and check the box below "Does this answer your question" to help others find this too!

     

     

    Always glad to help! 💯💯💯💯💯

     

    Tom

     

    Follow me on LinkedIn - Thomas Rice, PMP | LinkedIn

  • Suggested answer
    trice602 Profile Picture
    16,034 Super User 2026 Season 1 on at
    Hi there!
     
    To get familiar with the file location, go to your OneDrive for Business folder and look in Apps, shown below.  There's a folder named Microsoft Forms. 
     
     
     

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!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 557

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 264 Super User 2026 Season 1

Last 30 days Overall leaderboard