Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. 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