1. Home
  2. Guides
  3. Power Automate
  4. How to organize Microsoft Forms file uploads into OneDrive with an Excel index
Power Automate

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.

  • By Nur Islam
  • 16:40 video
  • 12 steps
  • 1.4K views
Jump to a step (12)
Who this is for

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
  1. 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 optional Notes text question.

    File upload questions only work for people inside your organization, which suits employee document collection.

  2. 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 Docs and Notes. The four document columns will hold the links.

  3. 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.

  4. 04

    Create the flow and read the form response

    In Power Automate, click Create > Automated cloud flow. Name it Employee Document Organization and 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 Id from the trigger. Now the flow can read the name, email, ID, notes and uploaded files.

  5. 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, type json() and, with the cursor inside the brackets, pick Identity Docs from Get response details in dynamic content. The upload answer arrives as text, and json() 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 example first(outputs('Prepare_ID_File'))?['id'].

  6. 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_, insert Employee ID from Get response details, type _, insert Full Name (click See more if it is not listed), then type .pdf
    • File Content: File Content from Get ID Content

    The identity document is now saved with a clear name in your own folder.

  7. 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 the Id output of Save ID File, Link type to View and Link scope to Organization. This gives you a link to store in Excel that anyone in your company can open.

  8. 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 Docs and Supporting Docs. Rename every action so the flow stays readable, and change the file name prefix in each Create file action: Employment, Payroll and Supporting.

  9. 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 to OneDrive, browse to the tracker file in Employment Documents, and choose Table1.

    Open Advanced parameters, show all columns and set DateTime Format to ISO 8601. Then map:

    • Submission Date: Submission time from Get response details
    • Full Name, Work Email, Employee ID, Notes: the matching answers
    • Identity Docs: Web URL from Create ID Link
    • Employment Docs, Payroll Docs, Supporting Docs: Web URL from each matching link action
  10. 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 Email from Get response details. Set Subject to Document received and write a short body that starts with Hi followed by the Full Name answer, for example: your documents have been received and we will contact you if anything else is needed.

  11. 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 View and Link scope to Organization, and save again.

  12. 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 Date as Short Date if it shows a number. Double-click a link cell once to make it clickable.
    • The Employment Documents folder 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.

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.
Still stuck? Ask AI to help you fix itChatGPTClaudeGeminiCopilotPerplexityGrok

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 questionActionsFile name prefix
Identity DocsPrepare ID File, Get ID Content, Save ID File, Create ID LinkID_
Employment DocsPrepare, Get content, Save, Create linkEmployment_
Payroll DocsPrepare, Get content, Save, Create linkPayroll_
Supporting DocsPrepare, Get content, Save, Create linkSupporting_

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.

Video chapters
Ask a question in the comments Last checked 26 Sep 2026. Screens change: if a step looks different, tell me in the comments.