2

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.

Nicknow
  • 7,154
  • 3
  • 22
  • 38
chhaya_patel
  • 171
  • 1
  • 2
  • 15
  • Why do you not want to use an HTML web resource? Do you need to access CRM from another web application? – Henk van Boeijen Apr 07 '17 at 07:00
  • @HenkvanBoeijen Yes.I want to access CRM from another web application.Is it possible? – chhaya_patel Apr 07 '17 at 07:02
  • Not sure which version you are using, as you tagged all versions (please, fix that, by the way) but assuming you are using Online version this is possible by using OAuth, there are already quite a few tutorials on the web how to do that – Pawel Gradecki Apr 07 '17 at 09:58
  • @PawelGradecki Yes,I am using Dynamics CRM 365 online.Can you please share the reference link for tutorial? – chhaya_patel Apr 07 '17 at 10:37
  • 1
    http://phuocle.net/crm/dynamics-365-online-s2s-authentication-full-explain.aspx – Pawel Gradecki Apr 07 '17 at 10:40

1 Answers1

5

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.

Dave Clark
  • 2,243
  • 15
  • 32