Barbara
3 years agoNew Contributor II
Recommended Approach for Multiple REST Get Snaps
I need to make multiple GET calls to the same API, aggregate and flatten the JSON record, and write one single csv file. Each GET snap execution parameters are the same except for the RecordType, which has six (6) different values.
The solution in video “Snaplogic Best Practices: Sub Pipelines and Guaranteed Delivery” at https://www.youtube.com/watch?v=RqjKkG4V354 may be part of the solution.
A ForEach pipeline with the list of RecordType values in JSON that is parsed and passed to the subpipeline with the GET snap using ForEach would work. How can the multiple responses from the GET snap pipeline be aggregated so they can be flattened and output into a single csv file?