Versions Compared

Key

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

Required Link

https://businesscentral.dynamics.com 

https://portal.azure.com 


User ID: bizsupport@logosministriesltd.onmicrosoft.com

...

  1. go to API Permissions

          Add a permission

             Image Added

             Adding both permissions 

             Image Added

          

    • BC => Delegated permission (select all) 
    • BC => Application permission (select all) 
    • Grant admin consent

...

The link structure
https://login.microsoftonline.com/
<AAD TENANT ID>/wsfed?wa=wsignin1.0%26wtrealm=<APP ID URI>%26wreply=<APP REPLY URL>

Azure AD

https://learn.microsoft.com/en-us/microsoft-365/admin/misc/azure-ad-setup-guides?view=o365-worldwide



Postman Settings 
Obtain the token setup

...

  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 login to BC and proceed.
  10. Send the GET request, you can retrieve the relevant records from the web service URL => Success

...