function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ritesh KothalkarRitesh Kothalkar 

validate child record based on parent checkbox

Hello everyone,

i have two objects name doctor and Appointment Doctor is parent object and Appointment is Child (Master Detail Relationship) in doctor object there is available Field(checkbox) ,when i create appointment if doctor is not availabel then appointment with that doctor Should not be schedule  so how can i validate Appointment Object Using Admin Knowledge.

 

 

@anilbathula@@anilbathula@
Hi Rithesh,

write a validation rule on appointment object on creation of the record.
AND(ISNEW(), Doctor__r.Available__c<>true)
Thanks
Anil.B