Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Automating "File Upload" Filename in Microsoft Forms

(1) ShareShare
ReportReport
Posted on by 13

Hi All,

Hope everyone reading this is keeping well and healthy.

 

I have a Microsoft Form with 4 x Fields & 1 x Upload File option

Field 1 - Report Type

Field 2 - Product Name

Field 3 - Serial No

Field 4 - Tested By

 

Is there any flow which I can use to rename the uploaded file with a name which it fetches from the form itself. For example, the name to be achieved may look like "Report Type""Product Name""Serial No""Tested By"

 

I am not a coding expert and trying to learn this stuff. Can you advice on how I can achieve this using the automation flows?

 

Many Thanks to you!

 

  • Betcy Profile Picture
    2 on at
    Re: Automating "File Upload" Filename in Microsoft Forms

    Thanks. It worked for file uploads

  • rsymmons Profile Picture
    222 on at
    Re: Automating "File Upload" Filename in Microsoft Forms

    @timtenn use “link to file” under the create file menu. You can then wrap this in basic html so it’s a friendly link rather than a full url within the emai body 

  • timtenn Profile Picture
    4 on at
    Re: Automating "File Upload" Filename in Microsoft Forms

    @rsymmons - this is very helpful, thank you.  I want to send an email with the http link to this renamed file...how/where can I reference this dynamically in a flow that is triggered by MS Forms submission?  I've essentially created the exact flow as above, and I want to add another step where I send an email and include this link.

  • timtenn Profile Picture
    4 on at
    Re: Automating "File Upload" Filename in Microsoft Forms

    @rsymmons - this is very helpful, thank you.  I want to send an email with the http link to this renamed file...how/where can I reference this dynamically in a flow that is triggered by MS Forms submission?  I've essentially created the exact flow as above, and I want to add another step where I send an email and include this link.

  • rsymmons Profile Picture
    222 on at
    Re: Automating "File Upload" Filename in Microsoft Forms

    @Gautam_sehgal  My pleasure glad you've got  it working 🙂 

  • Gautam_sehgal Profile Picture
    13 on at
    Re: Automating "File Upload" Filename in Microsoft Forms

    @rsymmons - Thank you so much, I was creating the file incorrectly. This is done and I appreciate your support on this.

    I've got the desired results.

     

    Cheers !

    Many thanks & Regards

    Gautam Sehgal

  • rsymmons Profile Picture
    222 on at
    Re: Automating "File Upload" Filename in Microsoft Forms

    I know that OneDrive adds the authenticated user’s email address on the end of the file uploaded. I think the only way of overwriting this would be to create the file using your own naming criteria but again this would cause issues with the file type. 

    for example, when creating a file under file name put field1.field2.filetype. This would hard set the filetype though so only documents of a certain type would be accepted eg PDFs

  • rsymmons Profile Picture
    222 on at
    Re: Automating "File Upload" Filename in Microsoft Forms

    @Gautam_sehgal check the “create file” section and “file name” in the image I provided previously. This is easily done. 

  • Gautam_sehgal Profile Picture
    13 on at
    Re: Automating "File Upload" Filename in Microsoft Forms

    Hello @v-bacao-msft - Thank you for the video, it's very informative. Although I need to automate the rename process where the name is picked from the filled form.

     

    Thank you

    Gautam Sehgal

  • Gautam_sehgal Profile Picture
    13 on at
    Re: Automating "File Upload" Filename in Microsoft Forms

    Hello @rsymmons

     

    Thank you for breaking down the process for me. The flow runs successfully by now.

     

    This is how the file name after the output looks like  "Answer1,Answer2MyTestFile_Gautam Sehgal.pdf"

     

    Is there any possibility where I can get the file name like "Person1 Jumper.pdf" which come from the form field as shown in the image below!

    Form Capture.PNG

     

    Many thanks

    Gautam Sehgal

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492