web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Renaming uploaded file...
Power Automate
Unanswered

Renaming uploaded files from Forms using Form questions - Power Automate (multiple files)

(1) ShareShare
ReportReport
Posted on by 5
Hi:
 
I'm trying to rename multiple uploaded files (from Microsoft Forms) using fields from the form. I was able to rename one file from an uploaded form using directions from this community form: Automating "File Upload" Filename in Microsoft Forms. Now I'd like to be able to rename multiple uploads, from the same form, using this flow. I've created my form to allow for a maximum of two files uploaded per upload and a total of six upload sections.
 
Currently, when two files are uploaded (on one form upload) the first uploaded file is duplicated twice and the second one doesn't appear. I also tried to duplicate the same steps for another upload question (in a different section of the form - different question) and it again only uploads the first file uploaded and says "Failed" for the second.
 
Can anyone please assist me with this? 
 
Here's what I've done so far (again thanks to the answer provided in the above post)
 
When a new response is submitted (trigger)
 
Get Response Details
 
Parse JSON
Content - Dynamic content (label of the question with the uploaded file I want to rename)
Schema - 
{
    "type": "array",
    "items": {
        "type": "object",
        "properties": {
            "name": {
                "type": "string"
            },
            "link": {
                "type": "string"
            },
            "id": {
                "type": "string"
            },
            "type": {},
            "size": {
                "type": "integer"
            },
            "referenceId": {
                "type": "string"
            },
            "driveId": {
                "type": "string"
            },
            "status": {
                "type": "integer"
            },
            "uploadSessionUrl": {}
        },
        "required": [
            "name",
            "link",
            "id",
            "type",
            "size",
            "referenceId",
            "driveId",
            "status",
            "uploadSessionUrl"
        ]
    }
}
 
Get file content using path
File Path - the file path location where my files are being auto-added along with the following Expression attached to the end of the file path: first(body('Parse_JSON'))?['name']
 
Apply to each
Select an output from precious steps - Dynamic content > Parse JSON > Body
Add an action
Create file
Folder Path - new folder path where I am saving the renamed files
File Name - Dynamic content (choose the form fields that will combine to become new name) and end with Dynamic content > Parse JSON > name
File Content - Dynamic Content > Get file content using path > File content
 
 
Again, any help would be appreciated! 
Categories:
I have the same question (3)
  • creativeopinion Profile Picture
    10,502 Super User 2025 Season 2 on at
    You might be interested in these YT Tutorials:
     
    How to Get Microsoft Form File Uploads Attached to an Email 📧

    In this Microsoft Power Automate Tutorial I’m going to cover where file uploads from your Microsoft Forms are saved. I’ll also show you how attach the uploaded files to an email and how to dynamically name the files and customize the recipient of the email based on the selections made in your Microsoft Form. I will also cover how to handle responses that don’t include any file uploads.
     
    IN THIS VIDEO:
    ‌✅‌ 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
     
    ---
     
    How to Add Microsoft Form File Uploads to a SharePoint List Item
     
    In this Microsoft Power Automate Tutorial I’m going to cover how to add file uploads to a SharePoint list item. First, I’ll show you how to get the file name and content from the File Uploads from your Microsoft Form, then I’ll show you how to add those files to a SharePoint item.
     
    IN THIS VIDEO:
    ✅ 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 from Multiple File Upload Questions
    ✅ How to Handle MS Form Response When a File Isn’t Uploaded
    ✅ How to Attach an MS Form Single File Upload to a SharePoint List Item
    ✅ How to Attach Multiple MS Form File Uploads to a SharePoint List Item
    ✅ How to Attach MS Form File Uploads to an Email
     
     
    Hope this helps!

    Consider giving me a ❤️ if you liked my response!

    👉 Level up your Power Automate skills by checking out my tutorials on YouTube
    👉 Tips and Tricks on TikTok and Instagram

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard