You need to sign in to do that
Don't have an account?

Trigger When opportunityteammember of teamrole is 'Account Manager' update opportunity owner field
Write a trigger to Update the Opportunity Owner field on the Opportunity when a opportunity team member with role “Account manager” is added to the Opportunity. The Account manager will become the Opportunity owner.
Please use below code to solve this problem.
Thanks,
Nitish Singh