Created
January 17, 2017 08:15
-
-
Save adamwitko/ba8d4e2eb359b79bd97798140bf99b03 to your computer and use it in GitHub Desktop.
Update Account Executive
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
User u = [ SELECT Id from User Where Name = 'Some Person'].get(0); | |
Opportunity opp = [ Select AccountExecutive__r.Name from Opportunity Where id = 'XXX123' ].get(0); | |
opp.AccountExecutive__c = u.Id; | |
update opp; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment