Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

Error while trying to sign into api.businesscentral.dynamics

Posted on by 72

Hello, 

i am getting this error while trying to sign into API.  I tried with in chrome/edge with regular password and web service key. 

api.businesscentral.dynamics.com

{"error":{"code":"Authentication_InvalidCredentials","message":"The server has rejected the client credentials.  CorrelationId:  68c4bb8f-eb12-4c45-8f26-ee16aa4a0fe6."}}
  • Suggested answer
    Mayank M Jangid Profile Picture
    Mayank M Jangid 2 on at
    Error while trying to sign into api.businesscentral.dynamics
  • Suggested answer
    Krati21 Profile Picture
    Krati21 77 on at
    RE: Error while trying to sign into api.businesscentral.dynamics

    Hi,

    If you try to log into BC20 SaaS environment where web-service key is deprecated, you get an error like this:

    pastedimage1651031346230v1.png

    If that's the case, previous answers on the post will help where you need to use OAuth.

    But your error probably means you are just logging in with a wrong web-service key. Please make sure you use the latest web-service key from the user card.

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 73,696 Super User 2024 Season 2 on at
    RE: Error while trying to sign into api.businesscentral.dynamics

    Hi, hope the following also helps.

    https://yzhums.com/20690/

    PS: some info from Kauffmann

    pastedimage1651018550250v1.png

    pastedimage1651018557659v2.png

    pastedimage1651018564732v3.png

    pastedimage1651018577399v4.png

    Thanks.

    ZHU

  • Suggested answer
    JAngle Profile Picture
    JAngle 33,159 on at
    RE: Error while trying to sign into api.businesscentral.dynamics

    Is this SaaS? If so basic authentication has been deprecated: docs.microsoft.com/.../web-services-authentication

    Move to OAuth. Plenty of documentation available for aiding with this. Plenty of good blog posts here: https://www.kauffmann.nl/

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans