• Instructions to Ask a Question

    Click on the "Ask a Question" button and select the application for which you would like to ask questions.

    We have 5 different products namely - Pabbly Connect, Pabbly Subscription Billing, Pabbly Email Marketing, Pabbly Form Builder, Pabbly Email Verification.

    The turnaround time is 24 hrs (Business Hours - 10.00 AM to 6.00 PM IST, Except Saturday and Sunday). So your kind patience will be highly appreciated!

    🚀🚀Exclusive Discount Offer

    Just in case you're looking for any ongoing offers on Pabbly, you can check the one-time offers listed below. You just need to pay once and use the application forever -
     

    🔥 Pabbly Connect One Time Plan for $249 (🏆Lifetime Access) -  View offer 

    🔥 Pabbly Subscription Billing One Time Plan for $249 (🏆Lifetime Access) - View offer

trigger API for every result in next step

Status
Not open for further replies.
I am using the text formatter function in Pabbly to split text using a comma separator. How can I configure it up to trigger the API for each resulting value, accommodating cases where there could be 2 to 9 values?
i.e. if we got 3 results then in the next step, Api will be triggered 3 times- once with each value, and if we got 5 results then in the next step, Api will be triggered 5 times- once with each value
 

In Route ---> Step named "Customer details available" ---> I wish to get number details in the step named "Get Number Details" for each number that I received in the previous step named "Get Numbers."

and need to set all further steps accordingly

Note: In the step "Get numbers," I could receive a different quantity of numbers every time
 

ArshilAhmad

Moderator
Staff member
I am using the text formatter function in Pabbly to split text using a comma separator. How can I configure it up to trigger the API for each resulting value, accommodating cases where there could be 2 to 9 values?
i.e. if we got 3 results then in the next step, Api will be triggered 3 times- once with each value, and if we got 5 results then in the next step, Api will be triggered 5 times- once with each value
For this use case you will have to setup API module action step 9 times, in case it receives less then 9 values some of your steps which didn't receive the value from previous step will fail. Please note that this is a workaround, and your exact use case is not possible. Also, this workaround will work for a maximum of 9 numbers.

In Route ---> Step named "Customer details available" ---> I wish to get number details in the step named "Get Number Details" for each number that I received in the previous step named "Get Numbers."

and need to set all further steps accordingly

Note: In the step "Get numbers," I could receive a different quantity of numbers every time
For this, you can disable the Simple Response for 'Get Numbers' to capture the numbers in array format. Then, add an Iterator to your workflow. The Iterator will execute the next step of your workflow (GET Number details) as per the quantity of numbers. For example, if there are 5 numbers, the Iterator will execute the "GET Number details" action step 5 times.
1690658138060.png


Please watch the video attached below to understand the concept of Iterator. Ignore the use case of the shared video.
 
Status
Not open for further replies.
Top