Business Central Access Token Account
Overview
Use this account type to connect Business Central Snaps with data sources that use the Access Token dynamically. This account type is useful when you already have an access token and want to use it directly without going through the OAuth2 authorization flow.

Prerequisites
- A registered application in the Microsoft Azure Portal with appropriate permissions to generate the access token. Refer to Application Configuration in Microsoft Azure Portal for OAuth2 Account to use in Business Central for the steps to register an application and for information required to define settings for the account.
Account settings
Note: Learn about
the common controls in the Snap settings dialog.
| Field/Field set | Description |
|---|---|
| Label*
|
Specify a unique label for the account. Default value: N/A Example: Business Central Access Token Account |
| Access Token*
|
Specify the access token for authentication. This token is used to authenticate API requests to Microsoft Dynamics 365 Business Central. Default value: N/A Example: eyJ0eXAiOiJKV1QiLCJhbGc... |
| Instance URL*
|
Specify the host URL of the Business Central application in the following format: Default value: N/A Example: https://api.businesscentral.dynamics.com/v2.0 |
Troubleshooting
| Error | Reason | Resolution |
|---|---|---|
| One or more required fields is/are blank. | After clicking Apply in the account dialog window, one or more of the following fields are blank: Label, Access Token, or Instance URL. | Specify valid values in the Label, Access Token, and Instance URL fields and click Apply. |
| Error while executing the request | (Unauthorized) The credentials provided are incorrect [HTTP/1.1 401 Unauthorized] | Provide a valid access token and retry. |
| Instance URL is invalid or wrong. | Target host is null. | Update the Business Central Instance URL with a valid URL. |