function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
CB312CB312 

Help me build a simple trigger to update an opportunity field from the User object

Hey Guys,

 

I have no idea where to start with this, and my contact at Salesforce said that this would be a great resource. I appologize for my niaveness with this, I am not looking for you to do my work, just point me in the right direction. Thanks!

 

English explination of what I'm looking to do:

 

There is a field stored on each user (assistant) the type is a Lookup Relationship to another user. I want that field to autopopulate in an opportunity field, Field_B. It should lookup the opportunity owner, grab the Assistant field and associate that user with the opportunity as Field_B.

 

Can anyone help me?

 

Thanks!

-Chris

dmchengdmcheng

Here are some resources for learning Apex:

http://wiki.developerforce.com/index.php/Apex

 

and some other tutorial resources:

http://wiki.developerforce.com/index.php/Forcedotcomworkbook

 

and the general documentation area:

http://wiki.developerforce.com/index.php/Documentation