Dynamics 365 Business Central Update

Overview

This Snap updates the user records for a specific entity in the Business Central application.

Note: The Business Central Update Snap does not allow upstream values for any fields (Company, Entity, etc.).

Supported Accounts


Dynamics 365 Business Central Update Snap Overview

Prerequisites

Limitations

  • The Business Central Update Snap supports a maximum Batch size of 100.
  • The Business Central Create, Update, and Delete Snaps do not support the respective operations for a few entities, such as Account.

Known issues

  • The Company field in the Business Central Update Snap is optional for a few entities, such as Subscriptions, and it is mandatory for the remaining entities. Therefore, if the field is left blank, the Snap displays an error. Specify the Company name for mandatory entities.
  • The Business Central Update Snap displays the following errors when you run the batch process with the error view enabled: 500 Internal Server Error, Socket timeout error, and Read timed out error. Increase the Timeout value to 500 or more and decrease the batch size while keeping the default retry properties.

Snap views

Type Description Examples of upstream and downstream Snaps
Input This Snap supports a minimum of one and a maximum of one document input view. Requires user data as a JSON document.
Output This Snap supports a minimum of one and a maximum of one document output view. Writes the updated user information for an entity.
Learn more about Error handling.

Examples

Snap settings

Note: Learn about the common controls in the Snap settings dialog.
Field/Field set Description
Label*

String

Specify a unique name for the Snap. Modify this to be more appropriate, especially if more than one of the same Snaps is in the pipeline.

Default value: Business Central Update

Example: BC Update
Company

String/Expression/ Suggestion

Specify the company registered with the Business Central application.

Default value: N/A

Example: My Company
Entity*

String/Expression/ Suggestion

Specify the OData entity object.

Default value: N/A

Example: employees
Primary key* Use this field set to specify the primary key that uniquely identifies the rows.
Key

String/Expression/ Suggestion

Specify or select the primary key from which you want to update the record.

Note: More than one primary key can exist for an Entity. Ensure that you provide key-value pairs for the primary keys associated with a specific entity. If you do not specify, the Snap fails.

Default value: N/A

Example: Id
Value

String/Expression

Specify the value of the key for which you want to update the record.

Default value: N/A

Example: 2998d72e-fac9-ed11-94cc-000d3a220b2f
Batch type

Dropdown list

Choose the operation you want for batching, which is applicable only when the Batch size is more than 1:

  • Stop-On-Error: Sends all the records to the output view until the Snap encounters an error.
  • Transactional: Sends all the records and the records with errors to the error view when error occurs.
  • Continue-On-Error: Sends all the records except those with the error to the output view.

Default value: Stop-On-Error

Example: Transactional
Batch size

Integer/Expression

Specify the batch size to update a number of users in a batch.

Default value: 100

Example: 50
Timeout (seconds)

Integer/Expression

Specify the timeout to determine whether the connection is alive and also the timeout when waiting for a response through a socket.

Default value: 60

Example: 100
Number of retries

Integer/Expression

Specify the maximum number of retries to be made to receive a response.

Note: The number of retries are disabled if the value is 0.

Default value: 0

Example: 5
Retry interval (seconds)

Integer/Expression

Specify in seconds, the time period between retry attempts.

Default value: 1

Example: 5
HTTP header Use this field set to define the HTTP key-value pairs to pass to the Dynamics 365 Business Central instance.
Key

Specify the key for the HTTP header.

Default value: N/A

Example: Accept
Value

Specify the value for the HTTP header.

Default value: N/A

Example: application/json;odata.metadata=full
Snap Execution

Dropdown list

Choose one of the three modes in which the Snap executes. Available options are:
  • Validate & Execute: Performs limited execution of the Snap and generates a data preview during pipeline validation. Subsequently, performs full execution of the Snap (unlimited records) during pipeline runtime.
  • Execute only: Performs full execution of the Snap during pipeline execution without generating preview data.
  • Disabled: Disables the Snap and all Snaps that are downstream from it.

Default value: Validate & Execute

Example: Execute only

Troubleshooting

Error Reason Resolution
Number of requests exceeded the limit of 6000 over the time window of 300 seconds. Requests exceeded the limit of 6000 over the time window of 300 seconds. Decrease the batch size and retry. Refer to Service protection API limits for more information about the error messages.
Too many Requests - 429 Too many requests were sent to the Business Central endpoint. The Snap includes retry-after with <number of seconds> in the response header and automatically retries. Wait for the retry to succeed.