I have an automation cloud workflow that fires on the SPO Check-in and Publish Major version event, however I am not able to get the user’s check-in Comment from the Start Event - it’s not available as a start value nor as a value from querying the list/library after commencement.
Apart from having to a HTTP request as parse XMLor JSON, is there an alternate method to get this?
TIA Rob
Best answer by Jake
Hi @Robbayly
User comments for version control on SharePoint are stored inside the version history its self, it is obtainable via a web request to the item using a SharePoint Web Request action in Nintex.
It would look something like this, you will need the site URL, list/library name and item ID:
The web request would be configured as a Post to the following URL:
User comments for version control on SharePoint are stored inside the version history its self, it is obtainable via a web request to the item using a SharePoint Web Request action in Nintex.
It would look something like this, you will need the site URL, list/library name and item ID:
The web request would be configured as a Post to the following URL:
Thanks for the response - already resolved it back then. Used the following to get the last check-in comment: /_api/web/lists/getbytitle('[Library name]')/items('[ID]')/Versions?$top=1&$orderby=VersionId%20desc