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
srinivasasarmahere1.390217033575374E12srinivasasarmahere1.390217033575374E12 

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
Vinita_SFDCVinita_SFDC
Hello,

Please refer following threads for sample code for this requirement:

https://developer.salesforce.com/forums/ForumsMain?id=906F00000008zgfIAA

http://salesforce.stackexchange.com/questions/23010/follow-up-on-apex-trigger-with-cross-objects