Forum Discussion
Marc-Etienne_Tremblay
Aug 05, 2022Brass Contributor
How use REST API to create or move document set in SPD 2013 workflow
Hi,
I have found this 2 posts on the forum, but I need help to merge the information together.
I would like use the workfow function in sharepoint designer without code like is present in the second link, but to create a document set like the first link.
I understand than I need to add "SLUG" url in the header variable of my workflow but I'm not sure if this is the rigth place and what is the right structure for the restapi.
A example will be welcome.
Thank you
2 Replies
- Marc-Etienne_TremblayBrass ContributorHello,
I finish by fin than I could make a copie of a document set if I use a 2010 workflow in SPD 2013.
So now I could create a new docset in may archive list and copy all properties of the original docset than I have put in variable. But this make only a copy of the docset folder and do not take the file in the docset of the first list to make a copy in the second.
But with this 2010 workflow I dont need to use REST API command.
Now I search to copy the file (docx, pdf, etc) from the original docset folder in the new one.- Marc-Etienne_TremblayBrass ContributorHello,
I find than if I edit the properties of the files in one docset.
The URL include the ID of the file.
If I add in my workflow a variable where I give the ID of the file I could extract the name of it.
But my only way actualy to find the ID of the file is to edit the properties and check the URL.
I find how catch the ID of the content type associate to my file in the document set, but I dont find how I could specify in the workflow than I want the file ID and not the content type id.