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
Ramki DhananjayRamki Dhananjay 

Default Account team member

 While adding Default account team members we would be provided with a option to "Automatically add my default client/prospect(Account) team to  clients/prospects(Account)  that I create or clients/prospects(Account) that are transferred to me" . Is there a way to query it through API. Take a look at the  below screenshot.
 User-added image
Anoop yadavAnoop yadav
You can query like this:

UserAccountTeamMember u = [Select TeamMemberRole From UserAccountTeamMember Where UserId = :UserInfo.getUserId()];

Also check this link.
https://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_accountteammember.htm

Ramki DhananjayRamki Dhananjay
Hi Anoop,

I think you have misunderstood the question, 
what i would like to know is if the checkbox that i have checked in the above screenshot is accessable through API or not.

I find only  these fields in UserAccountTeamMember object.
AccountAccessLevel
CaseAccessLevel
ContactAccessLevel
OpportunityAccessLevel
OwnerId
TeamMemberRole
UserId

I tried surfing about this but had know luck.

Regards,
Ram.
Avi AvisrorAvi Avisror
Hi Ramki,
I'll be glad to know if you were able to solve it eventually?
It's exactly the issue we were tackle with days ago.