Need to query an API from one input option, however result must be published in next input option

If the API endpoint supports a post you could do something like this:


Translation Script

for(var key in data.json) {
  var row = data.json[key];
  var item = {'name':key, 'value':row};
  results.push(item);
}

Request Script

var postBody = {};
postBody[data.echoInput] = data.echoInput;
results = postBody;

and the option lists would be:


and

This is just a simple echo of the first but it comes back as so:

image
image

1 Like