1

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"?

1

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

  • Thank you for answer. I considered this option, but I wanted to do this as part of the "workflow 2013". – Daniel N. Dec 24 '18 at 10:04
0

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.
  • Yes, we can also use REST API to get this data, thanks for your sharing. – LZ_MSFT Dec 25 '18 at 1:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.