Hello Community,
I need to make a connection & CRUD in dynamics 365 using oAuth2 or using Azure App details(ClientID, Client Secret) in C# code, Can anyone suggest the way to achieve that using Dynamics CRM SDK? Is there any other method or SDK for oAuth2?
Thanks
Hi Sandhya,
SDK and Web API(OAuth 2) are two different approaches:
.NET framework is required to use SDK, and SDK uses Organization service to connect to Dynamics environment.
Web API could be regarded as http request, hence we only need some system libraries(such as system.net.http) without importing SDK assemblies if we are working in Web API style.
(To be precise, besides system libraries, Active Directory assembly is required to authenticate Azure app.)
Please refer to following article, it gives complete steps to register Azure app and a sample C# code.
Regards,
Clofly
Hi,
Please refer to below link which explains how to connect D365 Web API using OAuth 2 with C# Code sample:
Best,
Wahaj
Holly Huffman
103
Muhammad Shahzad Sh...
96
Most Valuable Professional
Gerardo RenterÃa Ga...
51
Most Valuable Professional