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

Trigger on cross object field update

Can anyone help me with writing a trigger on cross object field update.

Object: Booking__c                            Field: Booking_Type__c (is a picklist) one of the value is Cancelled

Object: Booking_Item__C                 Field: Booking_type__c (is also a picklist) one of the value is Cancelled

The requirement is,

when status (Booking_Type_c) of Booking_c is selected as cancelled  the status (Booking_Type__c ) of Booking_item__c should also be updated to cancelled.

Any help will be much appreciated.

Thank you

Please refer following threads for sample code for this requirement: