My flow is triggered by a form submission, and it involves multiple possible attachments. Currently, I take the attachments from the "Get response details" action, and am provided with this:
{
"body": [
{
"name": "filename.png",
"link": "https://example.sharepoint.com/sites/directory.png",
"id": "01MZTSHJDMECTWOGD7C5A32K4NH6TCK53L",
"type": null,
"size": 56135,
"referenceId": "01MZTSHJGSGR3BG2RMZRHY4UG44WC7YGZG",
"driveId": "b!lpFf3dPwhU6zJNTbpGM6BartDUSBGbFOmvIgFbItjKXPcTH9pHmiSbvaCVVjlkuN",
"status": 1,
"uploadSessionUrl": null
}
]
}
Since there are multiple questions, I parse them all into one array to iterate over using an Apply to each loop. My goal then, is to do these things:
I'm struggling to do this, because it seems that the "move file" action requires a file identifier, and that identifier is not one of the things returned by the "Get response details" action. Here is my flow currently:
How can I move the file and get its new link from the properties available, as shown above?
So, I ended up figuring out 2 different things that I'll put here for others to reference.
@awaples You might find my latest YT Tutorial helpful: How to Get Microsoft Form File Uploads Attached to an Email 📧
Although this tutorial specifically covers how to get the File Uploads from a Group Form (where the files are saved in SharePoint and not OneDrive) attached to an email—you should be able to use the same logic to move your files to a different folder.
✅ Two types of MS Forms
✅ Where Microsoft Personal (OneDrive) Form File Uploads are Saved
✅ Where Microsoft Group Form File Uploads are Saved
✅ How to Add a File Upload Question to an MS Form
✅ How to get a Microsoft Form ID
✅ How to get a Microsoft Form Response
✅ How to Get the Dynamic Content Microsoft Form File Upload Content
✅ How to handle Single and Multiple Microsoft Form File Uploads
✅ How to use a Scope action to Organize and Group Your Flow Actions
✅ How to Get the File Content from an MS Form File Upload
✅ How to Collect All Files Uploaded to a MS Form and Attach to an Email
✅ How to Handle MS Form Response When a File Isn’t Uploaded
✅ How to Create an Email Key
✅ How to Send an Email to a Specific Recipient Based on Form Selection
✅ How to Create a Dynamic Output Based on Form Selection
Hope this helps!
Unless I am misunderstanding something, the link in the response object is a sharepoint link, not a onedrive link, and to access the form responses, I have to go to the Forms folder in my companies sharepoint, NOT my onedrive. My onedrive doesn't even have a forms folder. This makes sense since the form being used is owned by the company, not me.
Hi @awaples
Have you confirmed that by checking the file link in response object ?
Nived N 🚀
LinkedIn: Nived N's LinkedIn
YouTube: Nived N's YouTube Channel
🔍 Found my answer helpful? Please consider marking it as the solution!
Your appreciation keeps me motivated. Thank you! 🙌
They are not stored in onedrive, the form is a group form and they are stored in the sharepoint. Hopefully that would make it easier I'd imagine? Regardless, this method wont work due to that.
Hi @awaples
The files uploaded to form are seemed to be stored in onedrive , so to move to sharepoint , use get file content to get file content of file from onedrive and then create file using that file content in sharepoint.
i used delete file at last so to simulate like move operation. As move = create file at destination + delete file at source
Hope it helps !
Nived N 🚀
LinkedIn: Nived N's LinkedIn
YouTube: Nived N's YouTube Channel
🔍 Found my answer helpful? Please consider marking it as the solution!
Your appreciation keeps me motivated. Thank you! 🙌
David_MA
292
Super User 2025 Season 1
Michael E. Gernaey
259
Super User 2025 Season 1
stampcoin
214