I have a recursive workflow triggered by a button that schedules a backend API call, uses a Stripe plugin, and then redirects the user off-site. No matter what I try, it keeps duplicating the data.
I’ve attempted every method I can think of to manage recursion—iterations, list popping, using first item # minus last, checking iteration counts, and ensuring numbers aren’t reused. Despite all this, the issue persists.
I recreated the exact same API call on a different page, and it worked with no issues. I checked the logs but couldn’t pinpoint the problem. I’ve even rebuilt the button multiple times, yet it still duplicates.
I think you want to use the “Schedule API workflow” action here rather than “schedule on a list” – I’m assuming your backend workflow is doing the work of iterating through a list since I see an index parameter.
If you’re triggering that workflow on a list, then you’re telling Bubble to run it multiple times (once for each item in the list).
Try it with the single “Schedule API Workflow” action. All your parameters should be the same.