You need to sign in to do that
Don't have an account?
ParidhiBindal
Trigger to update another object if made change in one object
Hi I am writing my first trigger. Please help. I have two objects - CourseOffering and CourseConnection, there is a field in CourseOffering named 'Faculty. I want to write a trigger by which on updating Faculty, Course Connection's field named 'Status' changes to 'Former' from 'Current'.
Please help. Thanks.
Please help. Thanks.
First query the courseConnection sobject row which is to be updated using lookup field and update that.
Adding sample code for your reference.
If it resolves your doubt select it as best answer otherwise reply to ask anything else. Shubham Nandwana.
AppPerfect Corp.
salesforce@appperfect.com
408-252-4100
http://www.appperfect.com/services/salesforce/
Salesforce Development & Operations Experts
We have to create a lookup field first between both of these objects.
Try this code. it may be helpful for you:
If you found this answer helpful then please mark it as best answer so it can help others.
Thanks
Akshay
You can try this trigger..