cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Socrates
Advocate I
Advocate I

HTTP Request Set Document Library Internal Name

Hello

 

Is there any way to set the Internal Name of a document library on creation in a Send an HTTP Request action?

 

i.e. The display name of the Library is 'Project Inbound Documents' but in the URL, instead of:

 

https://[site]/sites/123456/Project%20Inbound%20Documents/Forms/AllItems.aspx

 

You get:

 

https://[site]/sites/123456/A1/Forms/AllItems.aspx

 

NB: I did a GET request on a site where we have this Display Name/Internal Name difference, and can see the field containing the internal name is "EntityTypeName", but if I used it in a POST request it wouldn't do anything.

 

My current HTTP Request action:

 

Socrates_0-1666192290115.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
Expiscornovus
Super User
Super User

Hi @Socrates,

 

I believe you can use the MoveTo method to move the rootfolder of the library to a new path/address. This is described in this blog but it is also used in the Set-PnPList PowerShell cmdlet:

https://www.sptrenches.com/2015/01/change-url-of-existing-sharepoint.html

https://github.com/pnp/powershell/blob/dev/src/Commands/Lists/SetList.cs#L102

 

I have tried this in a Power Automate cloud flow with three Send an HTTP request actions. This seems to work as well, but test this properly first 😁

 

projectinbounddocuments_changepath.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


View solution in original post

2 REPLIES 2
Expiscornovus
Super User
Super User

Hi @Socrates,

 

I believe you can use the MoveTo method to move the rootfolder of the library to a new path/address. This is described in this blog but it is also used in the Set-PnPList PowerShell cmdlet:

https://www.sptrenches.com/2015/01/change-url-of-existing-sharepoint.html

https://github.com/pnp/powershell/blob/dev/src/Commands/Lists/SetList.cs#L102

 

I have tried this in a Power Automate cloud flow with three Send an HTTP request actions. This seems to work as well, but test this properly first 😁

 

projectinbounddocuments_changepath.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


Socrates
Advocate I
Advocate I

Worked like a charm! Thanks very much 😀

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,886)