Question

I know how to get "Check in comment" field through "workflow 2010" Publish Major Version Comment access in SPD workflow.

But in "workflow 2013" this field is missing. Is there any way to do this with "workflow 2013"?

Was it helpful?

Solution 2

Thanks for answers, next solution did the job for me:

First I found this article "How to Get the Check-in Comments of the File in SharePoint 2013 Online Using REST API" for FLOW. It helped me to implement "Calling the SHarepoint 2013 REST API from a Sharepoint Designer workflow".

I will not describe how to find and check the query in browser.

To get "Check in comment" you need do next steps:

  1. Add "Build" action to the "Stage".
  2. Rename the dictionary variable to "JSonRequestHeader".
  3. Click "this", then click "Build your dictionnary"; add "Accept" and "Content-Type" headers, with type "String" and value "application/json;odata=verbose".
  4. Next add "Call" action.
  5. Click "this" and paste your http request like https://site.sharepoint.com/sites/site/_api/Web/GetFileByServerRelativeUrl('[%Current Item:Server Relative URL%]')/CheckInComment
  6. To associate the "JSonRequestHeader" variable select "Call" action property (To the right of the action down arrow).
  7. Set "RequestHeaders" property to "JSonRequestHeader".
  8. In "Call" action, click "response" and associate the response to a new variable: "JSonResult" (of type Dictionary).
  9. After "Call" action add a new "Get" action: click "item by name or path" and add "d/CheckInComment" then click "dictionary" and choose "JSonResult" then click "item" and choose your variable for value from "Check in comment" field.

OTHER TIPS

This is by design, as a workaround, we can start a SharePoint 2010 workflow in workflow 2013 to get this data.

Refer to: How to trigger a SharePoint 2010 workflow from a SharePoint 2013 workflow

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top