Capture versions of document set automatically when an item is changed (power automate)

%3CLINGO-SUB%20id%3D%22lingo-sub-1416600%22%20slang%3D%22en-US%22%3ECapture%20versions%20of%20document%20set%20automatically%20when%20an%20item%20is%20changed%20(power%20automate)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1416600%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3EDoes%20anyone%20know%20if%20there%C2%B4s%20any%20way%20I%20can%20set%20up%20a%20flow%20in%20power%20automate%20to%20capture%20a%20version%20of%20a%20document%20set%20when%20an%20item%20is%20changed%3F%20(e.g%20Major%20Version%20published)I%20know%20there%20are%20not%20out%20of%20the%20box%20features%20do%20deal%20with%20docsets%20in%20power%20automate%20(at%20least%20for%20know)%2C%20but%20perhaps%20with%20the%20action%20%22send%20http%20request%20to%20sharpoint%22%20there's%20a%20way%20I%20can%20do%20it.%20If%20anyone%20knows%20a%20way%20to%20do%20this%20(even%20without%20power%20automate)%20I%20would%20be%20extremly%20glad.%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1416600%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1463799%22%20slang%3D%22en-US%22%3ERe%3A%20Capture%20versions%20of%20document%20set%20automatically%20when%20an%20item%20is%20changed%20(power%20automate)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1463799%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F679216%22%20target%3D%22_blank%22%3E%40lourencosilva%3C%2FA%3E%26nbsp%3B%20did%20you%20find%20a%20solution%20for%20this%3F%3C%2FP%3E%3CP%3E%3CSTRONG%3EEdit%3C%2FSTRONG%3E%20-%20judging%20from%20the%20post%20below%20the%20option%20to%20capture%20a%20Doc%20Set%20version%20is%20not%20available%20in%20Flow%20or%20REST.%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fsocial.msdn.microsoft.com%2FForums%2Fsqlserver%2Fen-US%2Fa7c081cd-ddae-45d3-b4de-a39f35e89a15%2Frest-api-call-for-capture-version-and-version-history%3Fforum%3Dappsforsharepoint%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsocial.msdn.microsoft.com%2FForums%2Fsqlserver%2Fen-US%2Fa7c081cd-ddae-45d3-b4de-a39f35e89a15%2Frest-api-call-for-capture-version-and-version-history%3Fforum%3Dappsforsharepoint%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%22%3CSPAN%3EThere%20is%20no%20such%20method%20in%20REST%20API%20to%20%E2%80%9CCapture%20Version%E2%80%9D%20currently%2C%20I%20can%E2%80%99t%20find%20any%20workaround%20either.%3C%2FSPAN%3E%22%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1463884%22%20slang%3D%22en-US%22%3ERe%3A%20Capture%20versions%20of%20document%20set%20automatically%20when%20an%20item%20is%20changed%20(power%20automate)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1463884%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F673374%22%20target%3D%22_blank%22%3E%40nullorempty%3C%2FA%3E%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20did%20not%20find%20any%20solution%20with%20flow.%20However%2C%20I%20did%20manage%20to%20accomplish%20it%20via%20workflows.%20If%20you%20install%20SharePoint%20Designer%202013%20and%20connect%20it%20to%20your%20site%20you%20can%20build%20a%20workflow%20to%20capture%20a%20version%20given%20an%20action%20you%20have%20chosen.%26nbsp%3B%3C%2FP%3E%3CP%3EHere's%20my%20workflow%20in%20SharePoint%20Designer%3A%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22lourencosilva_0-1592240238952.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F198891i76ED1C2AA6D303AA%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22lourencosilva_0-1592240238952.png%22%20alt%3D%22lourencosilva_0-1592240238952.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EAnd%20here's%20the%20website%20that%20helped%20me%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fwww.benprins.net%2F2017%2F02%2F01%2Fsharepoint-2010-workflow-capture-document-set-versions%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.benprins.net%2F2017%2F02%2F01%2Fsharepoint-2010-workflow-capture-document-set-versions%2F%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDo%20you%20know%20if%20you%20can%20get%20the%20%22capture%20version%22%20property%20via%20a%20REST%20API%20call%3F%20If%20there's%20any%20way%20to%20get%20that%20information%20you%20could%20use%20the%20function%20%22send%20http%20request%20to%20SharePoint%22%20and%20change%20that%20value.%3C%2FP%3E%3CP%3EI%20did%20a%20similiar%20thing%20but%20to%20change%20the%20%22approval%20status%22%20of%20a%20document%20set.%3C%2FP%3E%3CP%3EIn%20this%20example%20the%20%22approval%20status%22%20column%20is%20equivalent%20to%20the%20%22OData__ModerationStatus%22.%20If%20there%20is%20a%20field%20for%20the%20property%20%22capture%20version%22%2C%20perhaps%20there%20would%20be%20a%20way%20to%20manipulate%20it.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ApprovalStatus.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F198893i55A2FAA9EC5701EE%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22ApprovalStatus.png%22%20alt%3D%22ApprovalStatus.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%E2%80%83%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

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

2 Replies

@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."

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: 

lourencosilva_0-1592240238952.png

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.

ApprovalStatus.png