Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
Answered

Add an user to a Team using C#

Posted on by 365

Hi Guys,

I have a requirement that add an user to a team using C#, I saw someone online talking about using this method "AddMembersTeamRequest", but I don't understand how to use those required parameter, such as TeamTemplateIdSystemUserId and Record. Can anyone elaborate on that?

And I also want to add the specified queue for the user, how do i need to do?

Thanks,

Stone

  • Stone Huang Profile Picture
    Stone Huang 365 on at
    RE: Add an user to a Team using C#

    Hi Guido,

    Thanks for your reminder, I also realized that I had made a mistake.

  • Verified answer
    Guido Preite Profile Picture
    Guido Preite 54,065 Moderator on at
    RE: Add an user to a Team using C#

    looks like you confused the AddMembersTeamRequest with AddUserToRecordTeamRequest.

    AddMembersTeamRequest is correct and requires TeamId and MemberIds (array of userid)

    hope it helps

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,564 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,651 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans