Business Central Access Token Account

In this article

Overview

You can use this account to connect the Microsoft Business Central Snaps with data sources that use the Business Central Access Token Account.

Prerequisites

  • A registered application in the Microsoft Azure Portal with appropriate permissions to generate the Access token. Refer to the Business Central OAuth2 Account for the steps to register an application and for information required to define settings for the OAuth2 account.

Limitations and Known Issues

None.

Account Settings

Business Central Access Token Account.png

Asterisk ( * ): Indicates a mandatory field.

  • Suggestion icon ( ): Indicates a list that is dynamically populated based on the configuration.

  • Expression icon ( ): Indicates the value is an expression (if enabled) or a static value (if disabled). Learn more about Using Expressions in SnapLogic.

  • Add icon ( ): Indicates that you can add fields in the field set.

  • Remove icon ( ): Indicates that you can remove fields from the field set.

Field Name

Field Type

Description

Field Name

Field Type

Description

Label*

Default Value: N/A
Example: Business Central Access Token account

String

Specify a unique name for the Business Central Access Token account.

 

Access token*

Default Value: N/A
Example: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3OD

String

Specify the access token to make API requests for the user associated with the client ID.

Instance URL*

Default Value: N/A
Example: https://snap-dev.dynamics.com

String

Specify the host URL of the Business Central application in the following format:

https://api.businesscentral.dynamics.com/v2.0/<environment name>/api/v2.0

The instance URL in the Business Central application refers to the web address you can use to access your specific instance of Business Central. The URL typically consists of the domain name or IP address of the server hosting the Business Central instance, followed by the specific path or endpoint that leads to the application. The exact format of the instance URL depends on the deployment method and configuration of your Business Central environment.

Troubleshooting

Error

Reason

Resolution

Error

Reason

Resolution

One or more required fields is/are blank.

After clicking Apply in the account dialog window, you encounter this issue where one or more of the following fields are blank:

  • Label

  • Access token

  • Instance URL

Specify valid values in the following fields and click Apply:

  • Label

  • Access token

  • Instance URL

Error while executing the request

(Unauthorized) The credentials provided are incorrect [HTTP/1.1 401 Unauthorized]

The user has to provide valid Access token and retry.

Instance URL  - invalid or wrong

Target host is null.

Update the correct Dynamics 365 Business Central instance URL.

Snap Pack History

 

Related Content

Â