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
kkgkkg 

How to extract Default Opportunity Team members from user object in salesforce ?

Hello Friends,

Please help me it's Urgent ....

Thanks for your help in advance..
kevin lamkevin lam
Basic query:

SELECT Id, (SELECT Id FROM UserTeams) FROM User

Just add the fields, filters and conditions required.
Kirill_YunussovKirill_Yunussov
Incorrect.  That will show you all the other users' teams where given user is a member.

Correct way is below.

SELECT Id, UserId, User.Name, TeamMemberRole FROM UserTeamMember where ownerid = 'SOME_USER_ID'