Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- trigger updateAM on Account (before update) {
- for (Account acct: trigger.new){
- if(acct.Owner_AM__c == 0){
- if(acct.Owner_Role__c == 'Affiliate Team'){
- acct.Account_Manager__r.Id = acct.Owner.Id;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement