+ Start a Discussion

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.




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: