dynamics-crmdynamics-crm-onlinedynamics-365-sales

How to do CRUD operations in Microsoft Dynamics CRM using html page


I want to do CRUD operations through HTML page without adding that page in Dynamics CRM's webresource.

Using C# we can connect with dynamics crm and can do get/add/edit/delete operations using CRM's dlls but I don't know the way of doing same from html page which is independent from CRM's webresource.

Can anybody please suggest me that is this possible or not and if yes then the way if there is any.


Solution

  • You can perform CRUD operations on Dynamics CRM 2016 and above using the Web API.

    You mention that your application will be independent of CRM, thus it will be on a separate domain. You will therefore need to register CRM in Azure and query the Web API with CORS.

    Here is a good example from Microsoft demonstrating how to use ADAL to connect an application with Dynamics CRM.