SBX - Search With Button

SBX - Forum Post Title

getting Unauthorized value in code while provodong correct token

Dynamics 365 Business Central Forum

akshay goyal asked a question on 11 Jun 2019 6:21 AM

Question Status

Suggested Answer

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.

Reply
BrotherSupport responded on 12 Jun 2019 1:51 AM
Suggested Answer

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

Reply
BrotherSupport responded on 12 Jun 2019 1:51 AM
Suggested Answer

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

Reply

SBX - Two Col Forum

SBX - Migrated JS