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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Not able to access APIS of microsoft dynamic 365 business central

(0) ShareShare
ReportReport
Posted on by 5

I have to implement the apis of microsoft dynamic 365 into my website but not able to access it. I have implemented authentication by using this https://github.com/thephpleague/oauth2-client, which is working fine. Microsoft graph apis are working but I can't use microsoft dynamic 365. In app also I added the permission of microsoft dynamic 365 business central.As per this documentation With refference of this documentation https://docs.microsoft.com/en-us/dynamics-nav/api-reference/v1.0/api/dynamics_companies_get to fetch company detail I tried following:

endpoint - https://api.businesscentral.dynamics.com/v2.0/production/abc.onmicrosoft.com/api/v1.0/companies 

Method - Get

With token that I got from authentication

I am getting this error -

{
     "error": {
        "code": "RequestDataInvalid",
        "message": "Request data is invalid."
     }
}

Please let me know what I am doing wrong, am I missing something ?

I have the same question (0)
  • Suggested answer
    I Gusti Made Ari Profile Picture
    3,600 on at

    I think it's the wrong URL , it should be like this : 

    api.businesscentral.dynamics.com/.../companies

     

    For production , you can remove the domain name as using AAD authentication the  account  you are using is already associated to tenant.

    https://api.businesscentral.dynamics.com/v2.0/production/api/v1.0/companies

    check below post for more explanation : 

    https://docs.microsoft.com/en-us/dynamics-nav/api-reference/v1.0/endpoints-apis-for-dynamics

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,151

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,443 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,092 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans