+ Start a Discussion
shirley_lafuente@hotmail.comshirley_lafuente@hotmail.com 

APEX Trigger Simple Field Update (Using a formula field)

My Opportunity has a separate lookup called Advertiser which looks up to the Account object. If the Account is a specific record type, then I want the Advertiser to automatically fill in with the same look up name as the existing Account? Since a workflow can't update a lookup field, I've been told I need to create a trigger.

 

Help?

jbardetjbardet

there's surely other people with similar questions that have been answered since this is a pretty common request.

 

Search for it..

 

Here's one to get you started:

 

http://boards.developerforce.com/t5/Apex-Code-Development/Trigger-Update-Lookup-Field/td-p/354509