Required Link
https://businesscentral.dynamics.com
User ID: bizsupport@logosministriesltd.onmicrosoft.com
--------------------------------------------------------------------------------------------------------------------------------------------
Azure AD Settings
Add a permission
Adding both permissions
Business Central Settings
*** "Azure Active Directory" is obsolete, try to search "Microsoft Entra Application" then click new. The user interface is same with the former one.
Below information for development / Postman testing use:
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
In Authorization, type = "OAuth 2.0", Add authorization data to "Request URL".
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/
10. Send the GET request, you can retrieve the relevant records from the web service URL => Success
* Troubleshooting
Error: tunneling socket could not be established, cause=connect ECONNREFUSED 192.168.x.x:xxxx
Postman has internal proxy server, which we need to turn off
Calling BC Web service
URL for login token: https://login.microsoftonline.com/6284c88c-f37e-458f-a4da-5bf111ed1f9c/oauth2/v2.0/token
Expected Result