Register Your Application in Microsoft Entra ID
To connect Dynamics 365 Business Central with StackOne, you need to register an application in Microsoft Entra ID to obtain OAuth 2.0 credentials.
Sign in to Microsoft Entra Admin Center
Sign in to the Microsoft Entra admin center as at least an Application Developer. If you have access to multiple tenants, click the Settings (gear) icon in the top-right corner, then select the desired tenant from the list under Directory + subscription.
Create a New App Registration
Navigate to App registrations from the left navigation menu and select New registration.
- Enter a meaningful Name for your app (e.g., StackOne Business Central Integration).
- Under Supported account types, select Accounts in this organizational directory only (single tenant).
- Select Register to create the app registration.
Configure Redirect URI
Set up the OAuth 2.0 callback URL to enable authentication flow between StackOne and Business Central.
Navigate to Authentication Settings
From your app’s Overview page, select Authentication (Preview) from the left menu under Manage. If you are using the older UI, this may appear as Authentication.
Set the Redirect URI
Under Redirect URI configuration, click Add Redirect URI, select Web, enter the StackOne OAuth callback URL, and click Configure.
- Redirect URI:
https://api.stackone.com/connect/oauth2/dynamics365bc/callback - Note: If you are using the older UI, under Platform configurations click Add a platform, select Web, enter the URI above, and click Configure.
Configure API Permissions
Grant your application the Dynamics 365 Business Central API permission. This uses the Business Central API, not Microsoft Graph. The permission granted here (Financials.ReadWrite.All) is the same as the Scope used by StackOne during authentication (https://api.businesscentral.dynamics.com/Financials.ReadWrite.All).
Add Business Central Permission
Click Add a permission, then select APIs my organization uses and search for “Dynamics 365 Business Central”. Select it, choose Delegated permissions, enable Financials.ReadWrite.All, and click Add permissions to save. Note: offline_access is requested automatically during the OAuth flow to obtain refresh tokens — it is not a selectable Dynamics 365 Business Central API permission and requires no additional action here:
Generate Client Secret
Create a client secret that will be used to authenticate your application with Business Central.
Create a New Client Secret
Under the Client secrets tab, click New client secret.
- Add a Description (e.g., StackOne Business Central Integration Secret).
- Select an appropriate expiration period.
- Click Add.
Creating the StackOne Connector Profile
To create the Connector Profile in StackOne for Microsoft Dynamics 365 Business Central:Navigate to Connector Profiles
Create New Connector Profile
- Click + Connector Profile
- Search for and select Microsoft Dynamics 365 Business Central
- Select Type as OAuth 2.0
- Fill out the fields using details retrieved from your provider:
- Client ID
- Client Secret
- Scopes (Optional)
- (Optional) Select Actions to be enabled for this Connector Profile
- Click Create profile