Happy Business Starts Here

Tasks not getting returned by the GET a Workflow by ID callout

Highlighted
Master

Tasks not getting returned by the GET a Workflow by ID callout

Hello

 

https://www.zuora.com/developer/api-reference/#operation/GET_Workflow

 

after a workflow is kicked off (on demand/ callout) we are making an API call to report the tasks count - success/ failed. When we run the GET call we are not seeing the same datafields in the response as the example states in the API documentation. No status or the Tasks is returned. Any ideas? 

 

 

Tags (2)
1 REPLY 1
Highlighted
Valued Scholar

Re: Tasks not getting returned by the GET a Workflow by ID callout

Not sure if you are still curious about this but:

It depends on the id you use for the callout. If you use the 'instance' id (the one used specifically for a workflow execution run), then you will get all the fields/tasks. If you use the id associated with the overall workflow (sometimes referenced as originalWorkflowId in the api), then you will only get some of the fields and none of the tasks. See attached screenshot.

Screen Shot 2020-03-03 at 15.17.27.png

Hope that clears this up.