- Home
- Guides
- Power Automate
- How to organize Microsoft Forms file uploads into OneDrive with an Excel index
How to organize Microsoft Forms file uploads into OneDrive with an Excel index
Build a Power Automate flow that renames every file uploaded through Microsoft Forms by document type, employee ID and name, copies it into a clean OneDrive folder, logs a clickable link in an Excel tracker and emails the submitter a confirmation.
Jump to a step (12)
Microsoft Forms saves every uploaded file into one default folder under Apps and the form name, with file names that say nothing about who sent them. HR and admin teams collecting IDs, contracts or payroll forms end up opening files one by one to find the right person's document.
The example is an employee document submission form with four upload questions: identity, employment, payroll and supporting documents. When someone submits it, the flow copies each PDF into an Employment Documents folder in OneDrive with a name like ID_TG001_JohnDoe.pdf, creates a view link for it, and adds one row to an Excel table with all four links.
The result is a single Excel index where you click straight to any person's file, plus a OneDrive folder you can search by name or employee ID. It uses only Microsoft Forms, OneDrive for Business, Excel Online (Business) and Office 365 Outlook. No SharePoint and no premium connectors.
What you need
- Microsoft 365 Business Basic or Standard with Power Automate
- A Microsoft Form with name, email, employee ID, four file upload questions and an optional notes question
- A OneDrive for Business folder for the organized copies
- An Excel table in that folder with columns for submission date, name, email, employee ID, the four document links and notes
Step by step
0 of 12 done-
01
Set up the submission form
Create a form (the video uses
Employee Document Submission) with these questions: full name, work email, employee ID, four file upload questions (Identity Docs,Employment Docs,Payroll Docs,Supporting Docs) and an optionalNotestext question.File upload questions only work for people inside your organization, which suits employee document collection.
-
02
Create the OneDrive folder and Excel tracker
In OneDrive, create a folder called
Employment Documents. This is where the renamed copies go.Decide on a naming pattern. The video uses document type, then employee ID, then name, for example
ID_TG001_JohnDoe. Later you can search the folder for a name or an ID and find the file at once.In the same folder, create an Excel file (the video's is
Employee Document Collection Logs) with these columns:Submission Date,Full Name,Work Email,Employee ID,Identity Docs,Employment Docs,Payroll Docs,Supporting DocsandNotes. The four document columns will hold the links. -
03
Format the range as a table
Select the header columns and click Format as Table, then pick any style. Note the table name (here
Table1). Power Automate can only write to Excel data that is formatted as a table. -
04
Create the flow and read the form response
In Power Automate, click Create > Automated cloud flow. Name it
Employee Document Organizationand choose the Microsoft Forms trigger When a new response is submitted. Select your form in Form Id.The trigger only tells the flow that a response arrived. Add the Microsoft Forms action Get response details, select the same form, and set Response Id to the
Response Idfrom the trigger. Now the flow can read the name, email, ID, notes and uploaded files. -
05
Prepare the uploaded file and get its content
Add a Compose action and rename it
Prepare ID File. In Inputs, open the expression editor, typejson()and, with the cursor inside the brackets, pickIdentity Docsfrom Get response details in dynamic content. The upload answer arrives as text, andjson()turns it into data the flow can read, including the file ID.Add the OneDrive for Business action Get file content and rename it
Get ID Content. For File, enter an expression that takes the ID of the uploaded file from the Compose output, for examplefirst(outputs('Prepare_ID_File'))?['id']. -
06
Save the renamed file to OneDrive
Add the OneDrive for Business action Create file and rename it
Save ID File.- Folder Path: click the folder icon, open root and choose
Employment Documents - File Name: type
ID_, insertEmployee IDfrom Get response details, type_, insertFull Name(click See more if it is not listed), then type.pdf - File Content:
File Contentfrom Get ID Content
The identity document is now saved with a clear name in your own folder.
- Folder Path: click the folder icon, open root and choose
-
07
Create a share link for the file
Add the OneDrive for Business action Create share link and rename it
Create ID Link. Set File to theIdoutput of Save ID File, Link type toViewand Link scope toOrganization. This gives you a link to store in Excel that anyone in your company can open. -
08
Repeat for the other document types
Build the same four actions (Compose, Get file content, Create file, Create share link) for
Employment Docs,Payroll DocsandSupporting Docs. Rename every action so the flow stays readable, and change the file name prefix in each Create file action:Employment,PayrollandSupporting. -
09
Add the file links to the Excel tracker
Add the Excel Online (Business) action Add a row into a table. Set Location to
OneDrive for Business, Document Library toOneDrive, browse to the tracker file inEmployment Documents, and chooseTable1.Open Advanced parameters, show all columns and set DateTime Format to
ISO 8601. Then map:Submission Date:Submission timefrom Get response detailsFull Name,Work Email,Employee ID,Notes: the matching answersIdentity Docs:Web URLfrom Create ID LinkEmployment Docs,Payroll Docs,Supporting Docs:Web URLfrom each matching link action
-
10
Send the confirmation email
Add the Office 365 Outlook action Send an email (V2). For To, click the gear icon, choose Use dynamic content and pick
Work Emailfrom Get response details. Set Subject toDocument receivedand write a short body that starts withHifollowed by theFull Nameanswer, for example: your documents have been received and we will contact you if anything else is needed. -
11
Save and fix any link action errors
Click Save. In the video, three of the copied Create share link actions showed errors because link type and scope were empty. Open each one, set Link type to
Viewand Link scope toOrganization, and save again. -
12
Test the flow
Click Test, choose Manually and click Test. Submit the form with a name, email, employee ID and a file in each upload question.
When the run finishes, check three places:
- The Excel tracker has a new row. Format
Submission Dateas Short Date if it shows a number. Double-click a link cell once to make it clickable. - The
Employment Documentsfolder holds four files named with the type, ID and name. - The submitter received the confirmation email.
After the test, the flow runs by itself on every new submission.
- The Excel tracker has a new row. Format
Tips and common problems
- Microsoft Forms file upload only works for people inside your organization. To collect files from outside people, use a OneDrive file request instead (see the video linked below).
- If the flow will not save, check every Create share link action. Link type and Link scope must both be set.
- If the submission date appears as a number in Excel, format the column as Short Date.
- Some Forms answers, such as full name, are hidden behind See more in the dynamic content list.
- Rename every action (Prepare ID File, Get ID Content, Save ID File, Create ID Link). With four copies of the same actions, clear names stop you from mapping the wrong link.
Actions for each document type
The flow repeats the same four actions for every upload question. Only the source answer and the file name prefix change.
| Upload question | Actions | File name prefix |
|---|---|---|
| Identity Docs | Prepare ID File, Get ID Content, Save ID File, Create ID Link | ID_ |
| Employment Docs | Prepare, Get content, Save, Create link | Employment_ |
| Payroll Docs | Prepare, Get content, Save, Create link | Payroll_ |
| Supporting Docs | Prepare, Get content, Save, Create link | Supporting_ |
Collect files from people outside your organization
Forms file upload is internal only. For clients, vendors or candidates, see Collect files from external users with OneDrive File Request.
Questions
Where does Microsoft Forms save uploaded files?
In the form owner's OneDrive, inside an Apps > Microsoft Forms folder named after the form. The files keep whatever name the person uploaded, which is why this flow copies and renames them.
Can I rename Microsoft Forms file uploads automatically?
Yes. Power Automate reads the uploaded file with Get file content and saves a copy with Create file, using any name you build from the form answers, such as document type, employee ID and name.
Do I need SharePoint or a premium connector for this?
No. The flow uses Microsoft Forms, OneDrive for Business, Excel Online (Business) and Office 365 Outlook, which are all standard connectors in Microsoft 365 Business Basic or Standard.
Can people outside my company upload files to Microsoft Forms?
No. File upload questions only work when the form is limited to people in your organization. For external people, a OneDrive file request is the usual alternative.
