You need to sign in to do that
Don't have an account?
sksfdc221
Trigger to update parent checkbox based on child checkbox
I have a requirement where if the parent (Contact) has more than one child (Lead_Custom__c) and if atleast one child record has Terminated__c checked to true, the Contact's Terminated__c will be updated to true.
Can anyone please suggest the required logic so that I can get this done.
Thanks in advance!
Can anyone please suggest the required logic so that I can get this done.
Thanks in advance!
Greetings!
Please find the sample code below:
Also,refer the below thread for an another example which might help you.
https://salesforce.stackexchange.com/questions/40701/update-checkbox-on-parent-when-any-of-its-child-records-are-updated
Kindly mark it as best answer if it helps so that it can help others in the future.
Warm Regards,
Shirisha Pathuri