
How ForLoop Works:
A for loop is a control flow statement that executes a block of code for each item in a collection. This approach simplifies looping by allowing you to directly work with collections, making your workflows more intuitive and streamlined.- Collection: The array or list of items that the workflow will iterate over.
- Current Item: The current item being processed in the loop.
1. Get Customer data from database
Create aCosmos Read Many Block to fetch all customers from the database.

2. Define the For Loop Collection:
- Loop over collection: Set the customer collection.

3. Send SMS Using Twilio
Click on the expand icon onUnit Block and it will expand you to Builder page where you can build logics of the loop.
Sample Pseudo Code
Twilio block inside the loop.
To access the current object in the collection, use the syntax below
Make sure that Twilio is connected to the platform. Guide to Twilio integration can be found here

4. Send Success Response
Create aBuild JSON block to be used in Http Response block to send a successful response.
