07-21-2022 12:02 PM
I need to be able to call a REST endpoint that takes a UserId as a parameter. I’m curious how I can leverage snaplogic to loop over an undetermined list of userIds from one REST endpoint to call another endpoint passing the user id.
Is this even possible in Snaplogic?
07-21-2022 02:04 PM
Sure. Use the JSON Splitter snap to split the output of the first REST Get into a set of documents, one per userId. Then configure the second REST Get with a query parameter whose value is an expression specifying the path of the userId in each input document.