Worflow not looping properly

Hey guys. I’m trying to synchronize my inventory between my ERP and a custom post type on WordPress. I’ve managed to make it work almost perfectly, but currently it’s only running once instead of looping over all posts. Do you guys have any idea what I’m doing wrong?

Hey @PAULO_ASSIS,

What does the execution output look like? Using nested loops can be tricky sometimes so it could be that the issue is with the data not being reset. Are the loops even needed in the workflow, Most nodes will automatically loop per item.

The execution output just give me a status 200 and the ID of the post I’ve just added. I’m not sure if the issue is the data no being reset because if I click on execute worflow again, It will go to the next item on the list just fine. About the loops being needed or not. I’m not sure, I’ll test.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.