Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Business Central forum

Business Central API cant connect to sandbox environment

(0) ShareShare
ReportReport
Posted on by 30

Hey there,

I have a Business Central Sandbox that I deployed to an Azure server to see what it will take to modify our GP integration to work with BC. I am having issues getting a token from Postman. I was trying to use AAD based auth and I kept coming up with a "Credentials provided are incorrect" message, so I tried to use Basic auth instead and am still having no luck. Basic auth is throwing the message "The server has rejected the client credentials". I've been trying to follow the various microsoft docs on the subject and still haven't figured out what I am doing wrong, I think it may have something to do with the link I am using. 

I set a Web Service Access key for my admin user, so basic auth should have worked. I have been trying to get from: https://api.businesscentral.dynamics.com/v1.0/ca15e0fe-af0f-4635-a797-046f805ef695/api/beta I got the tenant ID from the AAD "Directory ID" property.  

Any thoughts/suggestions are much appreciated!!

Categories:
  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at
    RE: Business Central API cant connect to sandbox environment

    You can use the new endpoints explained here:

    demiliani.com/.../

    For basic authentication, you need to pass the username and the web service access key.

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 forum

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans