Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
Suggested answer

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

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,063 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
    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,063 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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,532 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,501 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans