cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ryan2k
Resolver I
Resolver I

Copy and Rename a SharePoint Folder

Using this post as a guide, I was able to get a SharePoint folder copied, but I'm having trouble getting the rename to work. I'm just working with a Folder, not a Document Set, so the syntax is a bit different. As it's configured below, the folder gets copied, but has the name "_Template1" - not the "Account Name" - appreciate any help. Thanks!

 

Screen Shot 2018-10-15 at 3.05.49 PM.png

 

I know I have "Name" here instead of "name" as specified here: https://msdn.microsoft.com/en-us/library/office/jj247085.aspx but if I used the lowercase "name" it gave the below error

Screen Shot 2018-10-15 at 2.54.13 PM.png

1 ACCEPTED SOLUTION

Accepted Solutions

Figured out I could just Create a File and add a custom Folder path that way, then go back and delete the file. 


View solution in original post

2 REPLIES 2
ryan2k
Resolver I
Resolver I

I've tried this without single quotes around 'name' and the results are the same: 

 

"status"400,
  "message""The property 'name' does not exist on type 'SP.Folder'. Make sure to only use property names that are defined by the type.\r\nclientRequestId: 5b0d9565-cc96-49af-891d-cde71c3bc216\r\nserviceRequestId: cd01999e-80c9-7000-f816-9c9d436fc220",

Figured out I could just Create a File and add a custom Folder path that way, then go back and delete the file. 


View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (1,643)