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
October Events

Mark Your Calendars

So many events happening this month - don't miss out!

 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

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

Users online (4,212)