'With items' with optional delay between items
Chantelle van Onselen
We have come across a few scenarios where we need to create a child flow just to set a delay between items that we are looping through to avoid failure responses because of request limit reached or service unavailable errors.
Most APIs have time based request limits, so if we can set a delay between items in the With items, that would lessen the need for a child flow only for one action and the sole purpose of putting a delay in between items.
Log In
Brian Simpson
Chantelle, I'm going to suggest that making with-items action a subworkflow is always going to be your best option. One of the biggest reasons is how with-items handles failures. If you have an action set to concurrency of 10 on a with-items, each failure will kill your available slots for the next actions. If you're running a with-items on a list that is hundreds long, you only have 10 failures this way before the workflow will hard fail. If you utilize a subworkflow, you can branch to handle failures with retries, and a success on fail branch that will allow your parent workflow to continue.