cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
akosbanar
Advocate IV
Advocate IV

Can't rename file on Sharepoint

Dear all,

 

I have a flow what moves a file to the _Archive folder every Sunday and it is working normally.

akosbanar_1-1632385743219.png

I have another flow to rename this file for "utcNow_OriginalName" in the _Archive folder.

You can see on the following photos what is happened after last run.

akosbanar_2-1632385897862.png

 

akosbanar_0-1632385654439.png

akosbanar_3-1632385978766.png

I also attach two pictures about the edit view as well.

akosbanar_4-1632386119348.png

akosbanar_5-1632386177591.png

I only do it with two different flow because I couldn't whit one and I try to solve it somehow.

 

Can you help me?

1 REPLY 1
Expiscornovus
Super User
Super User

Hi @akosbanar,

 

Another approach would be to use a Send an HTTP request to SharePoint action and a POST request against the SharePoint Online REST API to update the FileLeafRef field and rename the file.

 

Below is an example of that approach.

In this example I am renaming it based on the old name (test.docx) and adding a number in front of it)

 

renamefile_sendahttp.png 



Happy to help out! 🙂

Interested in more #PowerAutomate #SharePointOnline or #PowerVirtualAgents content?
Visit my blog, Subscribe to my YouTube channel or Follow me on Twitter


Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (2,935)