You need to sign in to do that
Don't have an account?
Anas Alamour
trigger update field in parent record when delete a child record
Hi All , i am a new to Apex triggers. i have requirment to update checkbox field in a parent record when delete a child record , this update also based on a specfic condiiton. can anyone help me how to write this trigger and test class code , so i can deploy it to the production. Thanks.
You can take reference from below link for updating parent record on deletion of child.
You just need to modify it as per your scenario.
https://salesforce.stackexchange.com/questions/155061/updating-parent-field-after-child-record-is-deleted
If it helps please mark it as best answer.
Thanks!
Try Below Code Please Mark It As Best Answe If It Helps
Thank You!
use this code of trigger: ---------------
If you find your Solution then mark this as the best answer to close this question.
Thank you!
Regards,
Suraj Tripathi