You need to sign in to do that
Don't have an account?
Sasid
Trigger to delete a Cross Object Record
Could you please help me to write a trigger on Cross Object Record deletion.
Assume object A (Opportunity) and B (Contact Roles).
Object B is in related list of A.
Assume that there is a record in object B related to object A's record with name "ABCD".
Whenever a record is created on object B related to object A's record with name other than "ABCD", then the existing object B record named "ABCD" should be deleted.
Assume object A (Opportunity) and B (Contact Roles).
Object B is in related list of A.
Assume that there is a record in object B related to object A's record with name "ABCD".
Whenever a record is created on object B related to object A's record with name other than "ABCD", then the existing object B record named "ABCD" should be deleted.
Please check once below code :
Hope this helps you.
Thanks
Varaprasad
in your case u need to give opportunityid instead of objectA
Thanks
Varaprasad