User input as parameters for API call

Hello, I am trying to make a tool for a user to quickly check if an address has service with a telecom provider using their API. I am able to run successful calls and display the results when I use static data, however I am not sure how to replace that data with what the user inputs on a form.

How can I reference the content of those input fields dynamically in the JSON body?

After initiating the call successfully, make sure the parameter(s) you want to make dynamic is not private-checked in the API connector call.
To make a call dynamic based on the user’s input;
let’s say you’re displaying your result in a text element, u’ll give the following prompt,
Get data from an external API
Then select the API u’re fetching your data from,
You’ll then pass the name of your input element’s value dynamically.
Something like;

Thank you very much! I realized after reading your post that I had the API call as “data” and not “action”, so I was missing the part of the workflow I needed to reference the input fields.

I do have another question. My text is no longer displaying. I have the final step in the workflow as “display data in group”, and I believe i have set the workflow up correctly because the string I want to see is showing in the debug window as displayed. However, I cannot see on the page. Have I linked the workflow and group incorrectly?


“Group text” Data source should reference your API call

Much appreciated once again.

1 Like