So for some reason this backend workflow keeps looping over the first item instead of adding +1 to the index then running the steps on the correct item.
i have attached screenshots of the workflow, the parameters, the first call that keeps repeating, the schedule step that adds +1 to index and reschedules the backendworkflow (to move to next item in the passed list) and ive also attahced the logs.
Can anybody tell me what I am doing wrong here? It appears to be just repeating the first step on the same/first item. (evident as i get about 8 emails for that one item also)
Use schedule API workflow on a list instead of recursive workflow unless you need it to run in order for a specific reason
Passing a list of things in each iteration is hugely WU intensive
Instead of using an index/count, perform operations on List:first item. Reschedule by passing List:items from #2 (the remaining list). That reduces the severity of the second point I made above by only passing the remaining items rather than all.
I can’t tell why your current implementation is not working - but changing to what I outlined in step 3 will definitely work.
You need to adjust the list of eSIM for the loop by referencing the eSIM then use minus item eSIM first item…the only problem in your setup is that you keep sending the same list of eSIM each loop instead of removing the eSIM that just processed.