You need to sign in to do that
Don't have an account?

why not with after delete trigger?
Hi,
I have 2 custom objects. One is loop up to another.
On deleting the parent record, all the associated child records need to be deleted.
I have achieved this using before delete trigger.
Just curious to know why this is not happening using after trigger?
Rgds,
Vai.
I have 2 custom objects. One is loop up to another.
On deleting the parent record, all the associated child records need to be deleted.
I have achieved this using before delete trigger.
Just curious to know why this is not happening using after trigger?
Rgds,
Vai.
As mentioned in the below link the difference would be that you can't query the deleted records, or related child records in an after delete trigger.
>> https://salesforce.stackexchange.com/questions/288342/what-is-the-difference-between-before-delete-and-after-delete
I hope this addresses your question.
Regards,
Anutej