You need to sign in to do that
Don't have an account?

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
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:
https://developer.salesforce.com/forums/ForumsMain?id=906F00000008zgfIAA
http://salesforce.stackexchange.com/questions/23010/follow-up-on-apex-trigger-with-cross-objects