cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
_max
Frequent 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
JohnAageAnderse
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
JohnAageAnderse
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
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (83,553)