Execute one step after the iterator is done

Status: Closed · Asked by Andreas on · 0 views

Andreas — Question ·

I have an iterator over a list.

I would like to execute one step after the iterator is done.

In analogy to a loop I am trying to achieve this:

for x in [a,b,c, ...]
{
append x to Gsheet
}
end for
send webhook

Andreas — Reply ·

Thank you very much for your reply.
I read your demo.

If I understand correctly, what you have is analog to
**begin pseudo code**
for x in [a,b,c, ...]
{
block A of steps
}
**end pseudo code**
so "block A of steps" is executed n times

Did I understand that correctly?

I am looking for a way to achieve
**begin pseudo code**
for x in [a,b,c, ...]
{
block A of steps
}
block B of steps
**end pseudo code**

so "block A of steps" is executed n times
and afterwards
"block B of steps" is executed once.

How would I need to modify your demo to achieve that?
Thank you very much

Hermes — Reply ·

Step 4 is iterator.
Step 5 is, look if that field is already present. So for you it might be a sheet lookup. Because if its there already, why add it
Thats step 6 in my workflow, route 1 is edit the found row in spreadsheet
route 2 is add a row in spreadsheet

Best regards,
[EMAIL='[email hidden]']Hermes[/EMAIL]
Connect with me on LinkedIn
Hermes — Reply ·

@Andreas I understand now, after a router you cant create a step.
So basiccally you want to add a stepp for the last field in iterator.
Not sure how that can be done, depends if the iterator also has a counts for all fields inside it.
@Pabbly is it possible to counts all fields before router and then add a step if entry last is done then send webhook (api)

Otherwise a solution can be to do send webhook (api) before the router and add a delay in the next webhook/api.

Best regards,
[EMAIL='[email hidden]']Hermes[/EMAIL]
Connect with me on LinkedIn
Andreas — Reply ·

@Hermes Yes, that's exactly what I am trying to achieve. Thank you very much

Fagun Shah — Reply ·
@Hermes Yes, that's exactly what I am trying to achieve. Thank you very much

Add router -1 with conditions to complete your iterator tasks and then add router -2 with condition which will be always true and add delay there to send api/webhook.
Fagun Shah
- Automation Freelancer
- Let's Connect - https://www.facebook.com/fagun.shah.7/
Hermes — Reply ·

In my step 3 I got a field that stated: Total = 155
Before the router step need to create a field that counts
Router step 3 would then be if count =155 then send webhook

Attachments

screenshot-connect.pabbly.com-2021.05.28-13_29_23.png
Best regards,
[EMAIL='[email hidden]']Hermes[/EMAIL]
Connect with me on LinkedIn
Andreas — Reply ·

@Hermes Thank you very much. I will try that! Thank you very much again for your time.

Hermes — Reply ·

I believe this 1 should work to count all entries in the iterator

Attachments

screenshot-connect.pabbly.com-2021.05.28-13_43_19.png
Best regards,
[EMAIL='[email hidden]']Hermes[/EMAIL]
Connect with me on LinkedIn

Back to all forum threads · Log in to reply