Skip to main content

Notifications

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...

  • Guido Preite Profile Picture
    Guido Preite 54,087 Super User 2024 Season 1 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
    Twiga 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
    Guido Preite 54,087 Super User 2024 Season 1 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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans