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
Dual Super User
Dual 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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Users online (1,873)