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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Business Central forum

Dynamics 365 integration endpoints: {"message":"Unauthorized"}. Am I missing a step?

(0) ShareShare
ReportReport
Posted on by

I am currently following the steps to connect to the D365 Business Central API posted by mkhalife here: 

https://community.dynamics.com/business/f/758/t/265941

I have registered an application with Azure AD.

I have set the apps permissions to access D365.

8168.Capture.JPG

I have generated the app key and walked through the steps to access the API through postman. 

 5228.Capture.JPG

I am receiving the token as expected. 

I am making calls to the common endpoint service and I am receiving an unauthorized message. 

https://api.businesscentral.dynamics.com/v1.0/api/beta/companies.

Is there a step I am missing? Do I need to take steps to set up the registered app's permissions inside of Business Central?

Are there further steps for enabling the API in D365 Business Central? I found the following documentation for NAV, but I don't have access to this in D365, is this an admin function only?

  1. In Dynamics NAV, search for API Setup and then choose the related link.
  2. On the API Setup page, choose the Integrate APIs button.
    This will start a process of populating all the integration tables with records for all APIs. The process can take several minutes.
Categories:
I have the same question (0)
  • Timussch Profile Picture
    on at

    Think it is a common issue right now. Only got it to work using this api:

    https://api.businesscentral.dynamics.com/v1.0/<companyid>/ODataV4/$metadata

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 > Business Central

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans