So it should first finish all records in checkDelete and when done it should continue with PostContacLoop
Hey @Sander! For your current setup a simple change to the
checkDelete code block should ensure it runs completely before moving to
postContactLoop. Can you add an
deleteEmails() on line 11?
Without that, the JS code block 'returns' and moves on before the inner loop is done.
As an aside, I see that you are triggering unconnected code blocks (
postContact). While this is presumably working for you, we have seen that pattern break down in a few circumstances. We recommend leveraging functions in this case. And the calling syntax is easier as well (no need for additionalScope)!
Screenshot of that syntax as well here for you:
Let me know if you have any other questions!