โ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โฆ