cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can change your system assigned username to something more personal in your community settings. X

API to get CR from WorkItem?

crosato
2-Explorer

API to get CR from WorkItem?

Does anybody know a way to get the originating CR oid from the WorkItem within it's workflow.


I have a specific step in my workflow where I need to grab the ECR object in order to do some linking to it. I've looked in the workflow and change helpers, but found nothing.

1 REPLY 1
dwilliams
12-Amethyst
(To:crosato)

You can use the following to get the OID from within the CR workflow:



String OID = primaryBusinessObject.toString();



Or, an easier method to get the CR Object would be:



wt.change2.WTChangeRequest2 changeRequest =
((wt.change2.WTChangeRequest2)primaryBusinessObject);



Regards,

Dax Williams
Engineering E-Tools Administrator
GE Healthcare OEC

Surgery


Announcements


Top Tags