Hi,
I've been asked to implement a .NET core API that performs some query, i thought it just was the same as how i did in .net 4.5.2 But in fact i discovered that Microsoft SDK don't work with core. I had a lot of searching of how i can work around this, but no answers. Any one knows how this can be done ?
You'll need to register an application in Azure and create an application user. The steps can be found here: https://crmtipoftheday.com/767/server-to-server-authentication-is-here/
Once you've got that set up - here is some sample C# (not .NET Core but should be almost the same) that calls the Web API endpoint
https://github.com/jlattimer/CrmWebApiCSharp/tree/master/CrmWebApiCSharpNoAdal
Hi
Dynamics 365 SDK does not yet support .NET Core.
I would recommend you use Web API to query from a .NET Core project
Package Microsoft.CrmSdk.XrmTooling.CoreAssembly 9.0.2.12 supports: net462 (.NETFramework,Version=v4.6.2)
Hi Khaled,
Please check this. If this is what you need - www.nuget.org/.../Microsoft.CrmSdk.XrmTooling.CoreAssembly
Hope this helps.
Hi , thanks for your answers but "Microsoft.CrmSdk.CoreAssemblies" only has the microsoft.xrm.sdk dll and the microsoft.crm.sdk.proxy dll , the microsoft.xrm.tooling.connector is missing. any idea?
Hi partner,
You could refer to the response of the owner of "Microsoft.CrmSdk.CoreAssemblies NuGet package".
Here is also a similar resolved issue about how to use Dynamics SDK in Core applications.
Hope it helps.
Best Regards
Leo
Hi Khaled,
You can use www.nuget.org/.../Microsoft.CrmSdk.CoreAssemblies (Core Assemblies) that work with your C# Application (Console app or Class Library) to interact with Dynamics 365.
Hope this helps!
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156