web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

How to connect to 365 in .Net Core in c#

(0) ShareShare
ReportReport
Posted on by 45

Hy everyone! 

Can anyone help me please with connecting to CRM 365 online using Xrm.Tools.CRMWebAPI nuget packet 

in c#? 

I am only using IOrganizationService before...

I have the same question (0)
  • Guido Preite Profile Picture
    54,084 Moderator on at
    RE: How to connect to 365 in .Net Core in c#

    with the latest release the package is in public preview (and not in alpha as before).

    Safe for production use? Really depends what you mean there, generally I should say no but in the end you will face the same situation.

    Let's make an example:

    In 2017 you created an integration to an online instance using the .NET framework nuget package, it's supported and it worked until end of 2019, where it stopped to work because Microsoft changed something in their online instances and you needed to update the nuget packages and the integration worked again.

    In 2021 you create a new integration with this .NET Core preview package and it will work until 2022 when Microsoft will change something that break the authentication flow used in the preview package you used. You update the nuget packages and the integration back to work.

    What I want to say is that when you deal with online instances (where you don't have the full control like an OnPremise instance) can happen that also if you use "production" components you will face issues requiring to update these "production" components. Mitigate these situations should be the focus, for example just a simple log stored someone to quickly check if the connection to Dataverse happened or not when the integration runs.

    hope it helps

  • Twiga Profile Picture
    25 on at
    RE: How to connect to 365 in .Net Core in c#

    It is safe to use the net core assemblies in production use?

  • Suggested answer
    Guido Preite Profile Picture
    54,084 Moderator on at
    RE: How to connect to 365 in .Net Core in c#

    if you wish to use .net core you can use the Dataverse Client nuget package

    https://www.nuget.org/packages/Microsoft.PowerPlatform.Dataverse.Client/

    it's still in Alpha but works very good, keep in mind that username/password authentication is not available using this package, you should use an app registration and clientid/clientsecret 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 258

#2
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 179

#3
Tom_Gioielli Profile Picture

Tom_Gioielli 129 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans