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 / Saving a file to a spe...
Power Automate
Unanswered

Saving a file to a specific folder based on email address

(0) ShareShare
ReportReport
Posted on by 83

I created a Microsoft form with a flow that saves the information to a Sharepoint list and creates a document in OneDrive. The file name is saved by email address and response ID. Is there a way to move the OneDrive document to a specific Sharepoint folder on the email address?

 

Thank you!!

Categories:
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Yes. Do you have some examples of what you have so far? 

  • eric-cheng Profile Picture
    5,171 on at

    Hi @ttaylor4125 ,

     

    Try the below.  Should get you 95% of the way there.

     

    1. I have a Form with a file upload question called 'Question'

    ericcheng_0-1630479459569.png

     

    2) Start with the MS Forms trigger and get the response details

     

    ericcheng_2-1630479503694.png

     

    3) The File upload field will be an array and you will need to parse out the details using Parse JSON.  You can run your flow once and go your flow history and get the output to generate from sample.  It looks like the below.

     

    [{"name":"xxxx","link":"xxxx","id":"xxxx","type":null,"size":5528,"referenceId":"xxxx","driveId":"xxxx","status":1,"uploadSessionUrl":null}]

    ericcheng_3-1630479540306.png

    4) Add a Get file content using path action and specify the File Path (yours will look slightly different) and pass in the name from your Parse JSON.  This will automatically add your action inside a loop.  Lastly, use a Create File action to create the file into your relevant document library.  

     

    ericcheng_4-1630479721576.png

     

    You may want to add a Delete File to cleanup your OneDrive at the end.

     

    --------------------------------------------------------------------------
    If I have answered your question, please mark my post as a solution
    If you have found my response helpful, please give it a thumbs up

    Connect on LinkedIn

     

     

     

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

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 298 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 289

#3
Henil Profile Picture

Henil 125

Last 30 days Overall leaderboard