Skip to main content

Original topic: https://community.nintex.com/t5/Nintex-for-SharePoint-Forum/How-to-get-latest-version-history-comment/td-p/48311

Original post date: 14 November 2011

Question:
This is for NW2010. I have a document library with versioning enabled. I have a workflow that runs on an item update. What I need to be able to do is to have a condition based on the last version comment. Why? I have a 3rd party product which updates document libarary items, and leaves a particular commentin the version history. I need a condition that says "if latest Version History comment = 'edited by FooMaster 2000' then...

How would I go about getting the latest version history comment so I could throw it into a variable or use it in a conditional statement?

Answer:
Firstly, make a call to the Versions.asmx web service with the Call Web Service action.
Then, use the Query XML results, to pull out the first comment, using the xpath //defaultNS:result/@comments
The textTemp variable will contain the latest versions comments.

Be the first to reply!

Reply