This topic contains 4 replies, has 4 voices, and was last updated by mfejczaruk 6 years, 11 months ago.
- Topic
To perform feedback from BPM to OroCRM I need to transit workflow item for opportunity entity to next step via api. To do this I need to know ID of workflow item associated with opportunity entity because of requirements of API method:
/api/rest/{version}/workflow/transit/{workflowItemId}/{transitionName}
To get workflow item ID I tried to get this information by call get opportunity method:
/api/rest/{version}/opportunities/{id}
For my test opportunity I’ve got this result (for debug I switched off WSSE authentication):
1234567891011121314$ curl -i -H "Accept: application/json" --user nixikanius:q123 http://localhost:4001/app_dev.php/api/rest/v1/opportunities/72.jsonHTTP/1.1 200 OKDate: Wed, 06 Aug 2014 13:50:57 GMTServer: Apache/2.2.22 (Debian)X-Powered-By: PHP/5.5.14-1~dotdeb.1Set-Cookie: CRMID=tcdo2fh9jg7g4klq57tqbce871; path=/; HttpOnlyCache-Control: no-cacheX-Debug-Token: e54474Vary: Accept-EncodingConnection: closeTransfer-Encoding: chunkedContent-Type: application/json{"id":72,"name":"Buckeye Furniture","closeDate":"2014-08-04T00:00:00+00:00","probability":1,"budgetAmount":null,"closeRevenue":"1.0000","customerNeed":"2416","proposedSolution":"5893","createdAt":"2014-07-18T14:16:33+00:00","updatedAt":"2014-08-06T13:50:52+00:00","notes":null,"status":"In Progress","closeReason":"Won","contact":"Ema Bade","account":"Buckeye Furniture","lead":"Buckeye Furniture","owner":"simon.pace_22dcc","workflowItem":{"__initializer__":{},"__cloner__":{},"__isInitialized__":false},"workflowStep":{"__initializer__":{},"__cloner__":{},"__isInitialized__":false}}Result of call says me that no workflow item associated with my opportunity entity, but I know that is not right:
ID of associated workflow entity is 97. How can I get this via API to perform transit?
The forum ‘OroCRM – Programming Questions’ is closed to new topics and replies.