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

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 

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (2,139)