Hi Andrew,
I am unable to run the workflow to get output for findbyparameter because of security configurations.
I am using workitem number as the input: in the backend the atrribute name is ImWorkitem and at mbo attribute name is imWorkitem. Is this causing any problem?
Below are some details for reference:
uri template for payment request detail MBO: /ZCM_PAYMENT_REQUEST_DETAILS_SRV_01/PayrqSet?%24filter=ImWorkitem%20eq%20{imWorkitem}
Below is the debug file generated while Workflow messages are initiated.. the input para comes in the below format:
xml:base="http://mobnwgdev.hubbell.com:8000/sap/opu/odata/IWWRK/WFSERVICE;mo/"><id>http://mobnwgdev.hubbell.com:8000/sap/opu/odata/IWWRK/WFSERVICE;mo/RelatedObjectCollection</id><title type="text">RelatedObjectCollection</title><updated>2014-09-16T20:07:03Z</updated><author><name/></author><link href="RelatedObjectCollection" rel="self" title="RelatedObjectCollection"/></feed></m:inline></link><link href="WorkflowTaskCollection(SAP__Origin='QR1_005',workitem_id='000007553820')/WFInitiator" rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/WFInitiator" type="application/atom+xml;type=entry" title="WFInitiator"/><content type="" src="WorkflowTaskCollection(SAP__Origin='QR1_005',workitem_id='000007553820')/$value"/><m:properties><d:SAP__Origin>QR1_005</d:SAP__Origin><d:workitem_id>000007553820</d:workitem_id><d:status>READY</d:status><d:status_txt>Ready</d:status_txt><d:subject>There are Payment Request needing your Approval</d:subject><d:type>W</d:type><d:priority>5</d:priority><d:task_name>Payment Request created</d:task_name><d:actual_owner/><d:actual_owner_name/><d:note_count>0</d:note_count><d:reassign_by/><d:reserved_by/><d:act_dec>0000</d:act_dec><d:act_dec_agent/><d:language>E</d:language><d:start_dl m:null="true"/><d:end_dl m:null="true"/><d:created_at>2014-09-16T14:58:10</d:created_at><d:created_by>RBAHUGUN</d:created_by><d:gui_link>/sap/bc/gui/sap/its/webgui/?sap-language=EN&~transaction=*/iwfnd/wf_webgui P_WI=000007553820;P_TASK=TS90100146;P_SYS=;DYNP_OKCODE=OKCODE</d:gui_link><d:mime_type/></m:properties></entry></m:inline></link><content type="application/xml"><m:properties><d:SAP__Origin>QR1_005</d:SAP__Origin><d:ID>CBC8A013038D1EE48FBBA0840D1AEE1D</d:ID><d:collection>WorkflowTaskCollection</d:collection><d:changeType>created</d:changeType><d:entriesOfInterest>0</d:entriesOfInterest><d:recipient>BPAUL3</d:recipient></m:properties></content></entry>
Transformed:
dcn_request={"op":":upsert","id":"000007553820","to":"BPAUL3","from":"CM Workflow","subject":"There are Payment Request needing your Approval","body":"MATCH:HBL_CM_MWFv1, TASKID:TS90100015, ImWorkItem:000007553820, WORKITEM:000007553820, USER:BPAUL3*#END#*","received":"_WI_ACTUAL_AGENT","read":false,"priority":false,"data":[]}
Really appreciate your help in this. thanks Andrew
regards
Rahul