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.
Copy the Application (Client) ID
After registration, you’ll be directed to the application’s Overview page. Copy the Application (client) ID value and store it securely for use later.
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).
Open API Permissions
From the left menu under Manage, select API permissions.
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:
Grant Admin Consent
Click Grant admin consent for [tenant name] and select Yes to consent on behalf of all users in your tenant. After granting, verify that Granted for [tenant name] appears under the Status column.
Generate Client Secret
Create a client secret that will be used to authenticate your application with Business Central.
Navigate to Certificates & Secrets
From the left menu under Manage, select Certificates & secrets.
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.
Copy the Client Secret Value
Immediately copy the Value of the newly created client secret and store it securely for use later. This value will only be shown once and cannot be retrieved again.
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