Forum Discussion
Rename Folder Error
- Dec 10, 2020
I see that you are using the default document library in the site which is the Documents. In your Uri, you should only write the document library's name in the getbytitle part: _api/web/lists/getbytitle('Documents')/items([ItemId here]). If you did not change the display name of your document library, that should work. However, if you changed it, please change the Documents to your document library's current display name.
and for the Body, the metadata type should be SP.Data.Shared_x0020_DocumentsItem
{ "__metadata": { "type": "SP.Data.Shared_x0020_DocumentsItem" }, "FileLeafRef": "Folder Name" }
Your http request action should look like this:
Hope that helps.
Thank you again - you've been a big help! I think I'm getting super close... However, I cannot for the life of me get past the error:
Here is the latest flow:
Any thoughts? Thank you again!
I see that you are using the default document library in the site which is the Documents. In your Uri, you should only write the document library's name in the getbytitle part: _api/web/lists/getbytitle('Documents')/items([ItemId here]). If you did not change the display name of your document library, that should work. However, if you changed it, please change the Documents to your document library's current display name.
and for the Body, the metadata type should be SP.Data.Shared_x0020_DocumentsItem
{
"__metadata": {
"type": "SP.Data.Shared_x0020_DocumentsItem"
},
"FileLeafRef": "Folder Name"
}
Your http request action should look like this:
Hope that helps.
- GACVizDesignDec 10, 2020Copper Contributor
yenijcEureka!! That did it! Thank you so much for all your help - I greatly appreciate your time.