Skip to main content

Notifications

Dynamics 365 general forum

API connection to Dynamics 360

Posted on by Microsoft Employee

Hi,

Quick questions.

Has anybody been able to connect to the Dynamics 360 trial via API? if so.. how?

Thakns

Best

Iván

  • Suggested answer
    LeoAlt Profile Picture
    LeoAlt 16,329 on at
    RE: API connection to Dynamics 360

    Hi Ivan,

    If you are wondering how to use url to link to Dynamics Web Api , you could refer to this article.

    You could connect to WebApi through two ways:

    1.C#

    2.Clinet side JavaScript 

    Go to Settings->Customizations->Developer Resources,You will then see links to the Web API and the OData Organization Service.

    Hope it helps.

    Best Regards

    Leo

  • Suggested answer
    Priyesh Profile Picture
    Priyesh 7,392 User Group Leader on at
    RE: API connection to Dynamics 360

    Oh, you mean you don't have the credentials and the URL of the environment to connect to?

    Maybe you can ask the Admin to provide you since you'll need that.

    Also, additionally, you can ask if they have Multi-factor authentication enabled for that user, in that case - You'll need to use App Passwords to use in your application - stackoverflow.com/.../how-to-login-multi-factor-authentication-to-dynamics-365-using-c-sharp  (Just wanted to give this out just in case)

    If my answer helped you, please mark it as verified.

    Thanks.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: API connection to Dynamics 360

    Thanks a lot for the answer. But the main problem I've been facing is to know the URL and credentials I have to use to connect as the admin for these options is disabled.

  • Suggested answer
    Priyesh Profile Picture
    Priyesh 7,392 User Group Leader on at
    RE: API connection to Dynamics 360

    Hi Ivan,

    There are a couple of ways you can do this -

    1. You can use IOrganizationService interface to connect to dynamics 365 from your C# plugin that sits in Dynamics or from the Console Application.

    2. You can even use WebAPI to connect to Dynamics 365

    Here a few links that explain this in simple way -

    Microsoft Documentation - docs.microsoft.com/.../gg328282(v%3dcrm.8) (This should be the ideal way to explore ways to connect and get helper code as well)

    Using Console Application

    arunpotti.wordpress.com/.../comment-page-1

    Hope this helps!

  • Suggested answer
    Mahadeo Matre Profile Picture
    Mahadeo Matre 17,021 on at
    RE: API connection to Dynamics 360

    Hi,

    There is not any difference to connect Dynamics 365 trail or purchased version.

    check this link for more details

    docs.microsoft.com/.../web-api-samples

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans