I have a recursive backend workflow that basically performs operations on a contact_list in batches of 20 contacts at a time. I’m using a start_index of 1 and an end_index of 20. Each repeat, I add 20 to each index. I’ve confirmed the start_index and end_index are correct for each pass (i.e. 1 -20, 21-40, 41-60, etc). The first pass does give me contacts 1-20. However, the second pass starts at 21 but then goes to then end of the list (in this case 51). The third pass does start at 41 and goes to the end of the list at 51.
The contact_list stays the same each pass.
The start_index and end_index are correct each pass.
The expression that works for the first pass (items 1-20) is the same each time.
I cannot figure out why the second pass is not respecting the :item until# end_index. Any ideas?