Forum Discussion
lourencosilva
May 25, 2020Copper Contributor
Capture versions of document set automatically when an item is changed (power automate)
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...
nullorempty
Jun 15, 2020Copper Contributor
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-api-call-for-capture-version-and-version-history?forum=appsforsharepoint
"There is no such method in REST API to “Capture Version” currently, I can’t find any workaround either."
- lourencosilvaJun 15, 2020Copper Contributor
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.