Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Business Central forum

getting Unauthorized value in code while provodong correct token

(0) ShareShare
ReportReport
Posted on by

Hi,

I have successfully created the acess token via url ( https://login.microsoftonline.com/tenantID/oauth2/token )

But when i try to get data using url ( https://api.businesscentral.dynamics.com/v1.0/api/microsoft/automation/beta/companies

I am getting error 

<error xmlns="docs.oasis-open.org/.../metadata">

<code>Unauthorized</code>
<message>The credentials provided are incorrect</message>
</error>

while i prvoded the correct token in header.

Please, can anybody help me to figure out the problem.

Categories:
  • Suggested answer
    BrotherSupport Profile Picture
    5 on at
    RE: getting Unauthorized value in code while provodong correct token

    There must be a problem while typing the code .please check that if not then contact microsoft support for further queries .

    also read 

    How to Resolve OK Printer Error Code 990? ordinance printer Errors OK Printer Error Code 990 administrator ?
    https://www.brotherprintersupport.co.uk/2019/06/01/how-to-resolve-ok-printer-error-code-990-ordinance-printer-errors-ok-printer-error-code-990-administrator/

    https://www.brotherprintersupport.co.uk/brother-printer-support

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