Daemon Console Application Connecting to Business Central

it_businesscentral 121 Reputation points
2021-02-24T03:34:45.897+00:00

Hi,

Created a daemon console application connecting a local application and MS D365 Business Central.
Based the daemon console app on Quickstart under https://aad.portal.azure.com/
Also using https://api.businesscentral.dynamics.com/ to acquire token

Already able to acquire token already but getting a {"code":"Authentication_InvalidCredentials","message":"The server has rejected the client credentials. error.
71350-authentication-invalid-credentials.jpg

Anything I can do for this?

Thanks @AmanpreetSingh-MSFT for the help earlier!

Community Center | Not monitored
0 comments No comments
{count} votes

Accepted answer
  1. it_businesscentral 121 Reputation points
    2021-03-09T02:22:23.733+00:00

    Service to service authentication for automation APIs in Business Central is the answer

    https://www.kauffmann.nl/2020/09/14/service-to-service-authentication-for-automation-apis-in-business-central/

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Marilee Turscak-MSFT 37,206 Reputation points Microsoft Employee Moderator
    2021-02-26T19:19:39.383+00:00

    This error often occurs if the client_secret you provided is not the correct one. Please try going back to the app registration in the Azure portal for your app, and generate a new client secret and paste it in your code.

    Also, can you please confirm which Quickstart you are following?


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.