05-25-2020 11:56 AM
Hello,
Does anyone know if there´s any way I can set up a flow in power automate to capture a version of a document set when an item is changed? (e.g Major Version published)I know there are not out of the box features do deal with docsets in power automate (at least for know), but perhaps with the action "send http request to sharpoint" there's a way I can do it. If anyone knows a way to do this (even without power automate) I would be extremly glad.
Thanks
06-15-2020 09:25 AM - edited 06-15-2020 09:34 AM
@lourencosilva did you find a solution for this?
Edit - judging from the post below the option to capture a Doc Set version is not available in Flow or REST.
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/a7c081cd-ddae-45d3-b4de-a39f35e89a15/rest-a...
"There is no such method in REST API to “Capture Version” currently, I can’t find any workaround either."
06-15-2020 10:05 AM
Hi @nullorempty,
I did not find any solution with flow. However, I did manage to accomplish it via workflows. If you install SharePoint Designer 2013 and connect it to your site you can build a workflow to capture a version given an action you have chosen.
Here's my workflow in SharePoint Designer:
And here's the website that helped me: https://www.benprins.net/2017/02/01/sharepoint-2010-workflow-capture-document-set-versions/
Do you know if you can get the "capture version" property via a REST API call? If there's any way to get that information you could use the function "send http request to SharePoint" and change that value.
I did a similiar thing but to change the "approval status" of a document set.
In this example the "approval status" column is equivalent to the "OData__ModerationStatus". If there is a field for the property "capture version", perhaps there would be a way to manipulate it.