API Resource Query Loop

  • Goal: I want to be able to loop through an array and trigger a resource API call.

  • Steps: Right now I can run my API Resource Query call just fine by hard coding result['0'] or result['4'] and I get the API to return the value. I want to loop through all or the results[1-4] so I can access them in my query to merge the results together into into one array.

Iterate over the following to get all the results[1-4]
tasks/myorgid/layers/{{ table1.selectedRow.results['0'].id }}/samples?

The answer was pretty obvious. I just did everything in javascript by including the axios library. No need to do a resource query at all - did it all in code.

=) don't forget to mark your reply as the solution. you get credit for it and it makes it easier for future users to find posts related to their problem that have a solution.