Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
The PrimaryBusinessObject for this workflow is likely a Change Request, not a WTDocument, so the code does not act on the document.
Need the code to "navigate" from the change object to the resulting data to the resulting data's predecessor (previous Revision's last Iteration), and then set the state of it. Or, from change object to Affected data.
For understanding, might want to:
- create a workflow template with just this
- initiate the workflow via admin UI and tie to a WTDocument directly (one with a previous Rev)
Hi
Did you get this to work? I'm after the exact same function.
Thanks
Pär