06-20-2019 08:51 PM
There is a child pipeline which returns values like completed, in queue, processing etc. The requirement is that parent pipeline to run this child pipeline till it returns Completed, of-course after certain wait time. Its like while loop, run the child pipeline, till the expression is true. How do accomplish this in snaplogic ?
Appreciate any pointers…
06-21-2019 02:28 PM
Unfortunately the response object for this Marketo Endpoint doesn’t have “Has Next” or “Next URL” attributes. Otheriwse my life would have been much easier !!!
You can find the details of the response object etc in the following link.
GET /bulk/v1/leads/export/{exportId}/status.json
06-21-2019 02:37 PM
The “next” properties are expressions. So, I would think you could write an expression to check the response to the status request to see if it was completed or not. If it was completed, the ‘Has Next’ expression should return false, otherwise it should return true. The ‘Next URL’ can just be the same as the main Service URL property.
06-23-2019 07:48 PM
In the documentation for the REST Get Snap, there is an example for response form marketo:
REST Get Pagination: Marketo
For Marketo, set:
Has Next: resultdoc.moreResult
Next URL: “/rest/v1/activities.json?nextPageToken=” + resultdoc.nextPageToken + ”&activityTypeIds=1&activityTypeIds=12”
06-23-2019 11:18 PM
The difference is rest vs. bulk call.
06-24-2019 07:45 AM
The API for the child triggered task doesn’t have to return “Has Next” or “Next URL” properties directly, just something you can evaluate in expressions for those attributes in the REST GET snap.
For example:
Or whatever type of expression that returns true/false based on whether you want the REST GET snap to do again…