Adding multiple CRM users to Team in single web api call
When it comes to making successful SDK calls for adding multiple CRM users to a Team, Microsoft's documentation can sometimes fall short. This tutorial aims to provide a complete code sample, working example snippet, and JSON payload to achieve this goal.
An existing action, AddMembersTeam, is used for this task, but the JSON array of users to be sent in the payload is not well-explained in MS docs. Thanks to the insights of another community post and some experimentation in CRM REST builder, the complete payload is revealed and illustrated in the tutorial. The resulting web API call will look like this:
POST [Organization URI]/api/data/v9.0/teams(team-guid-id)/Microsoft.Dynamics.CRM.AddMembersTeam HTTP/1.1
Accept: application/json
Content-Type: application/json; charset=utf-8
OData-MaxVersion: 4.0
OData-Version: 4.0
{
"Members": [
{
"@odata.type": "Microsoft.Dynamics.CRM.systemuser",
"ownerid": "85927c2e-52e6-e511-80e7-0050569e0d14"
},
{
"@odata.type": "Microsoft.Dynamics.CRM.systemuser",
"ownerid": "ebb0ec50-733f-e811-a964-000d3a34edeb"
}
]
}
With the help of this tutorial, you'll have all the tools you require to add multiple CRM users to a team in a single web API call.
The post Adding multiple CRM users to Team in single web api call originally appeared on Arun Dynamix.
Published on:
Learn moreRelated posts
Console application through CRM API
This blog post provides guidance on creating a console application that utilizes the CRM API. It is focused on empowering developers to levera...
How to Integrate Microsoft CRM with External Applications Using Web Services
In this tutorial, you will learn how to seamlessly integrate your external applications with Microsoft Dynamics 365 Customer Engagement, previ...
Dynamics CRM Web API C# Auto Refresh Access Token while performing API request to CDS
If you're working with Dynamics CRM Web API in C# and accessing it from your application, you might run into the issue of your access token ex...
Resources Available to Train and Continuously Support Your Dynamics 365 CE (CRM) Users
Ensuring success in your Microsoft Dynamics 365 CRM implementation calls for effective support and continuous user training. Neglecting these ...
Introduction to Customizing and Extending Microsoft Dynamics CRM using Web Resource
If you're looking to extend the functionality of your Microsoft Dynamics CRM, this tutorial provides an introduction to customizing and extend...
Synchronize Dynamics 365 CRM Security Model in SharePoint along with a modern document management system!
Microsoft Dynamics 365 CRM is a powerful tool used to manage customer relationships, while SharePoint offers advanced document management capa...
Payload for registering Plugin step for webhook using web api
Are you having trouble creating records in CRM using web api and identifying payload to register a plugin step on a webhook? Then this post mi...
RetrieveDependenciesForUninstall payload sample to test
If you're struggling with how to properly execute a WEB API function in browser address bar to get JSON results, this post might help. The Ret...
Working web api endpoint & payload for RetrieveEntityRibbon CRM function
If you have ever faced issues working with the CRM web API to get the proper endpoint and payload, you are not alone. The documentation can be...