You need to sign in to do that
Don't have an account?
Tsvety
Cross Object Field Update Trigger
I am trying to create a trigger that will update a field on a Job object every time when a field on Opportunity is changed.
The field on the Job object is an email field and is called "Account Manager email". It should be populated with the Opportunity Owner's email.
(I cannot use a simple formula field for the Account Manager email, because I want to use this field in a workflow)
Will appreciate it if someone can help me write the trigger.
Thanks!
The field on the Job object is an email field and is called "Account Manager email". It should be populated with the Opportunity Owner's email.
(I cannot use a simple formula field for the Account Manager email, because I want to use this field in a workflow)
Will appreciate it if someone can help me write the trigger.
Thanks!
Before that may I know what is the relation between the Job Object and Opportuniy Object ?
Thanks
Sunil
There is a lookup field on Job that pulls up data from Opportunity.
Please try this and let us know
Thanks
Sunil
Hi Sunil,
Thanks for taking the time to write the code.
I get the following error message "Error: Compile Error: Variable does not exist: objOpp.Id "