Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Grant Type = Authorization Code
  2. 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/

  3. Auth URL = https://login.windows.net/$BC_TENANT_ID/oauth2/authorize?resource=https://api.businesscentral.dynamics.com               *** Replace $BC_TENANT_ID with actual one  
  4. Access Token URl = https://login.windows.net/$BC_TENANT_ID/oauth2/token?resource=https://api.businesscentral.dynamics.com
  5. Client ID = $your_applicaiton_(client)_ID (Obtain from overview)
  6. Client Secret = $value (You are advised to copy the secret value once created new client secret.)
  7. Scope & State keep them blank
  8. Client Authentication = send client credentials in body
  9. 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"

          Image Added


          Image Added


10. Send the GET request, you can retrieve the relevant records from the web service URL => Success
         Image Modified


  1. Authentication 


* Troubleshooting

...