How to run an API call for each item on a list

Hello everyone.

So I have a scenario where i need to loop through a phone number list and send each person a message through the Twilio API. Sounds easy enough, but I can’t quite figure out how to loop through a list of items, and fire an API call through a workflow. When i try to send it to :each item on the list, it tries to fire a single API call on the full list.
Another part to this is that the list is variable in length, so i can’t just pre-program X number of workflows.

Any thoughts on the right approach to this problem?

Hi @edmcintosh85 !

You can use the comand to “Schedule workflow on a list” and send this list to your backend workflow.

it took me a moment to understand how that connection worked, but i got it! thank you @rpetribu

1 Like