Accessing pyMaxAttempts and pyAttempts via the Agent activity
I want to be able to access pyMaxAttempts and pyAttempts via the Agent activity. However, as the work item is the primary page for the Agent activity, how do I get access to these properties to determine pyAttempts / pyMaxAttempts so that I can perform a different action if pyAttempts = pyMaxAttempts?
I confirmed the Work item is the Primary page by using tools.getPrimaryPage().getXML() and it printed out the XML representation of the work item I was expecting to be processed.
***Updated by moderator: Lochan to create new post from this comment; add categories***