...
- Grant Type = Authorization Code
Callback URL = https://businesscentral.dynamics.com/ with uncheck "Authorize using browser"
Prerequisite
In Azure > App registrations > Your application
Remember to setup Redirect URLs for obtain the token from https://businesscentral.dynamics.com/- Auth URL = https://login.windows.net/$BC_TENANT_ID/oauth2/authorize?resource=https://api.businesscentral.dynamics.com *** Replace $BC_TENANT_ID with actual one
- Access Token URl = https://login.windows.net/$BC_TENANT_ID/oauth2/token?resource=https://api.businesscentral.dynamics.com
- Client ID = $your_applicaiton_(client)_ID (Obtain from overview)
- Client Secret = $value (You are advised to copy the secret value once created new client secret.)
- Scope & State keep them blank
- Client Authentication = send client credentials in body
- Then click "Get New Access Token", then system will prompt up the BC login windows --> login to BC and proceed .→ Token will be generated → "Use Token"
10. Send the GET request, you can retrieve the relevant records from the web service URL => Success
- Authentication
* Troubleshooting
...