I'm successfully able to create a document set with flow, but I'd like to update it at the same time with the same request.
I've followed these instructions
https://www.itidea.nl/index.php/create-a-document-set-using-jsom-and-rest/
but I'm stuck when it comes to this part:
var docSetOptions = { ‘Title’: myTitle, ‘Path’: ‘/Documents’, ‘ContentTypeId’: contentTypeId, ‘ContentType’: contentType};
I don't know how to declare this array in flow. Can anyone help?
Cheers
Solved! Go to Solution.
I can pretty definitively tell you not possible in the same request. You have to create and then update in 2 actions. I've been looking for this for years, and no matter what angle you go at it (jsom, csom, rest, etc), it just doesnt work that way.
Hi Akumar
I ended up creating a document set with PowerShell and Azure Automation Services (it's free to a certain point).
I can pretty definitively tell you not possible in the same request. You have to create and then update in 2 actions. I've been looking for this for years, and no matter what angle you go at it (jsom, csom, rest, etc), it just doesnt work that way.
Hey there
Thanks for your answer.
Really? Strange though as you can do it without flow. E.g. like in the link I've posted. Do you say flow doesn't support it or it doesn't know how to declare the jsonpayload variable?
I'm sorry - I misunderstood something in the actual blog post I was posting. I realized that all those values are default values and assumed (without checking what fields he's using) that you can add whichever custom fields you like).
Thanks - knowing that it is not possible is still better than trying to figure out how it works without ever finding success.
Hello,
Is there a solution? I am looking for same.
Thanks,
AK
Hi Akumar
I ended up creating a document set with PowerShell and Azure Automation Services (it's free to a certain point).
Thanks,
Could you please provide more information how you did it?
I created a flow which is using the azure action "create job". To choose a job out of this list, you'd need to create a subscription (again, it's free to a certain point) with Azure Automation Services. Within Azure Automation, you'd need to create so-called "runbooks" which are basically just scripts such as PowerShell scripts.
In short:
Flow is starting a PowerShell script which is stored on Azure.
You can create document sets without REST calls. Please review this Microsoft flow action. It is the action from Plumsail SP connector, which is a part of Plumsail Actions product.
Note, this product is a paid solution.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
At the monthly call, connect with other leaders and find out how community makes your experience even better.
User | Count |
---|---|
21 | |
20 | |
9 | |
7 | |
7 |
User | Count |
---|---|
33 | |
31 | |
24 | |
21 | |
11 |