cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Vanessa_Arevalo
Level: Powered On

Append Metadata value to the name of the file I'm uploading to my document list

Hi,

Is there a way I can rename the file based on the metadata value that user inputed using flow? Sample scenario: Uploaded Monitor.pdf file and add Vendor name: DELL as metadata(column), the output should be DELL - Monitor.pdf

Thanks,

5 REPLIES 5
Community Support Team
Community Support Team

Re: Append Metadata value to the name of the file I'm uploading to my document list

Hi @Vanessa_Arevalo,

 

Do you want to rename the uploaded file?

Could you provide more details about "metadata value that user reward"? If you upload a file, where will the user enter the metadata value?

As for renaming the file, there is no direct action to change the file name currently.

If you want to the feature to be supported in Microsoft Flow, you could vote for the similar ideal in the forum below:

https://powerusers.microsoft.com/t5/Flow-Ideas/New-SharePoint-Action-rename-file-folder-document-set...

Besides, you could consider using the following methods to change file name:

Method1:

Use Get file content to get the contents of the file, and then use the previous output to configure Create file, which makes it easy to name the file, and then use Delete file to delete the previous file, which can achieve the same purpose as renaming.

Method2:

Use Send http request to SharePoint to change the name of the file:

Image reference:

36.PNG37.PNG

For more details about SharePoint requests, please refer to the link below:

https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/working-with-lists-and-list-items-with-re...

https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/working-with-folders-and-files-with-rest

 

Best Regards,

Barry

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Vanessa_Arevalo
Level: Powered On

Re: Append Metadata value to the name of the file I'm uploading to my document list

Hi Barry,

 

Upon uploading a file Vendor Name is one of required column(metadata) that user will reward to the file and I want to use it's value as I rename the file.

Edit your flow _ Microsoft Flow.png

 Quote - All Documents.png

 

 

The flow works but the Vendor Name value = ABCD is missing from the output.

 

Thanks,

Vanessa

 

 

Community Support Team
Community Support Team

Re: Append Metadata value to the name of the file I'm uploading to my document list

Hi @Vanessa_Arevalo,

 

Maybe you could configure Delay action in the middle, wait a few minutes after the file is uploaded, and then rename the file.

46.PNG

Take a try.

 

Best Regards,

Barry

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Administrator
Administrator

Re: Append Metadata value to the name of the file I'm uploading to my document list

Hello, @Vanessa_Arevalo!

Thank you for posting on the Flow Community Forum! Have you had an opportunity to apply @v-bacao-msft‘s recommendation to adapt your Flow? If yes, and you find that solution to be satisfactory, please go ahead and click “Accept as Solution” so that this thread will be marked for other users to easily identify!

Thank you for being an active member of the Flow Community!

-Gabriel
Flow Community Manager

-Gabriel
Microsoft Power Automate Community Manager
Are YOU a member of your local Power Automate User Group?
Fill out This Form to claim your Community User Group Member Badge!
Vanessa_Arevalo
Level: Powered On

Re: Append Metadata value to the name of the file I'm uploading to my document list

Hi @GabrielStJohn,

 

Sorry but that did not work for me, what I did is I used Sharepoint Designer Workflow instead.

 

Thanks,

Vanessa

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 102 members 5,540 guests
Please welcome our newest community members: