You need to sign in to do that
Don't have an account?
RJ12
Trigger to delete multiple child object records when a parent record is deleted.
I have a parent object A and two child objects X, Y. Both X, Y have lookup relation to object A.
I'm looking for a trigger to delete related records in both X, Y objects when a parent record in object A is deleted.
If you use Master detail relationship other than the lookup, when you deleting parent, child records automatically get deleted.
otherwise you can try below trigger
Best regards