Using query responses as request parameters for another query
Hi,
I am trying to store the responses of a query in an array, so that I can then execute a different query that uses the array values as request parameters. I'm not sure how to get this to work. I currently have the following:
1) A query service
2) The following JS upon success of the service:
var m = JSON.stringify(data);
What I'd like to do next is take each "id" response (screenshot below) from this query, and execute a different service with it (i.e. iterate through all the "id" responses). Could you please help me figure out how to grab the "_id" values and iterate through them? I have attached a screenshot of the first query service below (ignore mapping please).
Thanks!