I’m guessing the database doesn’t have time to upd...
# suitescript
b
I’m guessing the database doesn’t have time to update and realize that those dependent records are gone before you’re trying to delete the other ones.
e
My understanding, assuming that everything is synchronous, is that each
delete
call has to trigger any relevant
beforeSubmit
and
afterSubmit
scripts/workflows, and the `afterSubmit`s won't fire until the deletion has occurred in the database.