Forum Discussion
jfpelletier - if you check the "Enable debug" in the snap, you will see a "_debug" field that contains some useful information to help diagnose what's going on. In particular, look at the URL generated for each page call. To temporarily limit the number of iterations, you can update your "Has next" to something like "snap.out.totalCount < 5 && $entity.itemCount > 100" which will stop the iterations at 5 so you can view the results.
My guess is that your "skip" value is the number to skip from zero, not the last iteration. So that might need to be something like "100 * (snap.out.totalCount + 1)" - which would result in 100, 200, 300, ..., and so on until it reaches the end.
Hope this helps!
You could build a pipeline that uses the SnapLogic Delete Snap, then create a Triggered task to call it from a URL.
- eric_hansen_wor7 years agoNew Contributor
Using SnapLogic to manage SnapLogic assets is not an option for me.
The activity API has to arguments: filter_asset and filter_project but there’s no example usage in the document.
Which values are compatible with those filters?
Per development:
filter_asset: filter activity by an asset’s label
filter_project: filter activity by project’s labelThere are some dependencies.
filter_ project also needs filter_project_space
filter_ asset needs filter_project_space and filter_ project- eric_hansen_wor7 years agoNew Contributor
Outstanding, thank you. I would love to see that included in the API documentation.
My solution will be to query the Activity API for activities in a project/Dir, and use the HTTP DELETE method for anything in the directory before deleting the directory itself.
It’s not ideal, but thankfully I was able to monitor the HTTP traffic in the Management UI and make the same kind of API calls to manage assets.
Thanks again.
- eric_hansen_wor7 years agoNew Contributor
I’m having trouble using the HTTP method for deleting ACCOUNT assets because the asset_id is used in the call.
That asset_id is only available in the SnapLogic List snap and not via the API.
Is there another API method or path I can use to delete account assets?
Related Content
- 4 months ago
- 4 years ago
- 2 years ago