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
lokesh reddy 7lokesh reddy 7 

can we query opportunity team members from opportunity trigger

Hi ,

I Have one trigger on opportunity on before insert ,before update .In that trigger iam changing owner id on update.Here i need to query the old opportunity team members related to the old owner.But iam not getting opportunity team members.Can any one advise on this.

Hi Lokesh,

In order to query OpportunityTeamMember one must first have a System Admin enable the Opportunity Teams option under

Settings>App Setup>Customize>Opportunities>Opportunity Teams>Opportunity Team Settings

lokesh reddy 7lokesh reddy 7
Its already enabled by system admin.
Could it help to share your query to advise you more.