
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.
I have generated the app key and walked through the steps to access the API through postman.
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?
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