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

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

API to get CR from WorkItem?

crosato
1-Newbie

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
6-Contributor
(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


Top Tags