cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Regular Visitor

Power Automate: Rename Document Set

Hello everybody,

 

as the title explains, I am looking for a way to rename a document set with the process of renaming changing the relative server URL.

I know this has been asked before, but the solutions dont work 100% for me.

I have tried these solutions:

https://powerusers.microsoft.com/t5/Building-Flows/Renaming-a-SharePoint-Folder-or-Document-Set/td-p...

https://powerusers.microsoft.com/t5/Building-Flows/Renaming-a-SharePoint-Folder-or-Document-Set/m-p/...

 

Both solutions use a HTTP-Request to the REST-API and so do I :

_api/web/GetFolderByServerRelativeUrl('<ListName>/<SetName>')//ListItemAllFields (I have to use 2 / compared to the solutions)

The HTTP-Request itself is working, but it is not changing the name of the document set or its relative URL. I try to avoid the easy solution of copying the Document Set with another name and deleting the old one, because I want to take track of the versions. If I look in the APIs calls, I can see, that the title has changed but not its name, or its path.

 

Is there any possibility, that there is a REST-API call, that can archieve this?

 

 

 

Thanks!

 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Hello @_max 

 

I know it can be done as I am doing it in one of my flows. See the screenshot of the REST call that I am using. The folder (document set) name change updates the "FileLeafRef" property, which is the actual filename of the folder.

Flow.REST.rename folder.png

Kind regards, John

View solution in original post

2 REPLIES 2
Super User
Super User

Hello @_max 

 

I know it can be done as I am doing it in one of my flows. See the screenshot of the REST call that I am using. The folder (document set) name change updates the "FileLeafRef" property, which is the actual filename of the folder.

Flow.REST.rename folder.png

Kind regards, John

View solution in original post

Hello @JohnAageAnderse ,

 

thank you very much! This helped me a lot.

 

Kind regards,

Max

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (55,959)