Execute one step after the iterator is done
Status: Closed · Asked by Andreas on · 0 views
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
Maybe this demo can help you: https://demo.heradiensten.nl/s/share/5590654/vuxhr9t43fo9wozu9f83
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
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
@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.
@Hermes Yes, that's exactly what I am trying to achieve. Thank you very much
@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.
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

@Hermes Thank you very much. I will try that! Thank you very much again for your time.
I believe this 1 should work to count all entries in the iterator
Attachments
