Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Business Central forum

Has anybody used any of the Dynamics 365 integration endpoints listed here: https://docs.microsoft.com/en-us/dynamics-nav/endpoints-apis-for-dynamics

(0) ShareShare
ReportReport
Posted on by

Has anybody used any of the Dynamics 365 integration endpoints listed here: docs.microsoft.com/.../endpoints-apis-for-dynamics

It appears the only one that works is the one that's not rated for production use. Has anybody else used any of these to successfully integrate an external app with Dynamics 365? I'm looking for some guidance on how to proceed with integration. What is the best method to integrate an external app with Dynamics 365?

Categories:
  • Henrik Westergaard Hansen Profile Picture
    on at
    RE: Has anybody used any of the Dynamics 365 integration endpoints listed here: https://docs.microsoft.com/en-us/dynamics-nav/endpoints-apis-for-dynamics

    Great guide. Remeber that the url in the resource needs to contain the protocol (https). This blog engines rewrites the URL. Also, another resource should be used going forward:

    ?resource=https://api.businesscentral.dynamics.com

  • Timussch Profile Picture
    on at
    RE: Has anybody used any of the Dynamics 365 integration endpoints listed here: https://docs.microsoft.com/en-us/dynamics-nav/endpoints-apis-for-dynamics

    It looks like this issue is stull present on May 8th when installing Business Central in a demo tenant created by demo.microsoft.com

  • Community Member Profile Picture
    on at
    RE: Has anybody used any of the Dynamics 365 integration endpoints listed here: https://docs.microsoft.com/en-us/dynamics-nav/endpoints-apis-for-dynamics

    Hi  I did the steps as mkhalife Posts, i got these results from postman " {Tenant }.onmicrosoft.com not found. This may happen if there are no active subscriptions for the tenant. Check with your subscription administrator."

  • mkhalife Profile Picture
    on at
    RE: Has anybody used any of the Dynamics 365 integration endpoints listed here: https://docs.microsoft.com/en-us/dynamics-nav/endpoints-apis-for-dynamics

    Thank you! The project madiera tip was what I needed. I had to specifically search for "Project" for it to show up. In any case, it's working now. I really appreciate the assistance. 

    I put together some brief instructions in case anyone else needs them:

    1. Login to the Azure Portal >> Azure Active Directory >> App Registrations

      5684.4.PNG

    2. Click “New application registration” and enter the following information
      1. Name: pick any name
      2. Application type: Web app / API
      3. Sign-on URL: this can be anything. I chose http://localhost

        8424.2.PNG

    3. Click on the app you just created and then select Settings >> Required Permissions
    4. Click Add >> Select an API >> and look for the Dynamics 365 option. If it doesn’t show up, manually search for “Project” and Project Madeira will show up. This is apparently required for older AAD tenants.

      2148.3.PNG

    5. Select Project Madiera and then select the available “delegated permission”

      5684.4.PNG

    6. Click “Done” and the permissions will be added
    7. Under Settings, navigate to Keys and create a new Key that doesn’t expire. Copy this value as you will not see it again.0842.5.PNG
    8. You should now have your Application ID and your secret (the Key from the last step). These will be used for authentication from your application (or Postman).
    9. The parameters you’ll need to authenticate via OAuth 2.0 are as follows:
      1. Grant Type: Authorization Code
      2. Callback URL: the URL you chose in step 2c
      3. Auth URL: https://login.windows.net/{yourtenant}.onmicrosoft.com/oauth2/authorize?resource=api.financials.dynamics.com
      4. Access Token URL: https://login.windows.net/{yourtenant}.onmicrosoft.com/oauth2/token?resource=api.financials.dynamics.com
      5. Client ID: your Application ID from step 8
      6. Client Secret:your Key from step 8

        8508.6.PNG

    10. Now you should be ready to request a token, which should bring up a login prompt and require you to grant permissions to the AAD app

      4670.7.PNG

    11. Now you can make a successful request using the provided token to https://api.financials.dynamics.com/v1.0/api/beta/
  • Verified answer
    Peter Borring - Microsoft Profile Picture
    156 on at
    RE: Has anybody used any of the Dynamics 365 integration endpoints listed here: https://docs.microsoft.com/en-us/dynamics-nav/endpoints-apis-for-dynamics

    The API is the same regardless if using the api.financials.dynamic.com endpoint, or going directly to the tenant.

    The difference is the authentication being used, where the common endpoint allows automatically delegation to the provided AAD users tenant, and thus also avoid having to specify any tenant specific endpoint url.

    How old is your AAD tenant? I believe that the names for other AppIds gets locked at the time of AAD tenant creation, so we might appear as, e.g., Project Madeira, which was the preview name of the service.

    A shortcut is to copy our AppId directly into the AAD manifests reqiuredResourceAccess list

     "requiredResourceAccess": [

       {

         "resourceAppId": "996def3d-b36c-4153-8607-a6fd3c01b89f",

         "resourceAccess": [

           {

             "id": "bce0976a-cb0b-473b-8800-84eda9f8e447",

             "type": "Scope"

           }

         ]

       }

     ]

  • TigerJ Profile Picture
    115 on at
    RE: Has anybody used any of the Dynamics 365 integration endpoints listed here: https://docs.microsoft.com/en-us/dynamics-nav/endpoints-apis-for-dynamics

    I am in the same boat. I have tried been trying to just hit api.financials.dynamics.com/.../companies with no luck at all.

    I have used every configuration I can think of...

    • bearer token,
    • basic authentication oauth,
    • registered an app in azure,
    • registered a native app in azure,
    • used the web access key as a password

    Every response I receive is 401 {"message":"Unauthorized"}

    The product we are using is online, not on-premise.

    Would love some sample code of a request to api.financials.dynamics.com/.../beta

  • mkhalife Profile Picture
    on at
    RE: Has anybody used any of the Dynamics 365 integration endpoints listed here: https://docs.microsoft.com/en-us/dynamics-nav/endpoints-apis-for-dynamics

    Hi Peter, thanks for the reply. I should have clarified that we are intending to integrate with Business Edition.

    We have gotten the direct tenant endpoint to work but are worried that we should not be using this given its usage is "Rapid development and testing only". What should we be using when we're done with development and testing? Will the resource identifiers be the same if we switch endpoints?

    I've tried to authenticate using OAuth to the common endpoint service but i'm not sure how to make it work. When I register my app in AAD there isn't an API option for this API, only the Dynamics AX API's.

  • Suggested answer
    Peter Borring - Microsoft Profile Picture
    156 on at
    RE: Has anybody used any of the Dynamics 365 integration endpoints listed here: https://docs.microsoft.com/en-us/dynamics-nav/endpoints-apis-for-dynamics

    Currently we support both the common endpoint with AAD and going directly to the tenant with basic authentication as outlined in the link. Microsoft Graph is not yet supported.

    Can you provide more information about the specifics not working?

    Thanks,

    /Peter 

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... 293,097 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,872 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans