AnsweredAssumed Answered

How to retrieve the transactionId from Policy Xpress?

Question asked by john.g.johnson on Aug 27, 2012
Latest reply on Jul 14, 2015 by Bill_Patton
I need to be able to retrieve the transactionId of a task executing from Policy Xpress. To clarify, when submitting a task via TEWS, I'm referring to the XML element returned to the client (e.g. SoapUI); for example:

<soapenv:Envelope xsi:schemaLocation="" xmlns:soapenv="" xmlns="http://tews6/wsdl" xmlns:xsd="" xmlns:SOAP-ENC="" xmlns:xsi="">
<ImsStatus version="6.0">

Obviously, the program that submits the task has access to this data... but I need to pass this value as a parameter in a PX Policy Action.

I have considered the possibility of using data elements available under category Events to query the task persistence database directly -- and that would probably work in most cases. However if two tasks were submitted around the same time for the same user, there would be no way to distinguish between them to get the right one. This should be rare, but I would rather avoid such a hack if possible.

Any ideas on how to do this?