Dynamics 365 Business Central Delete

Overview

You can use this Snap to delete records from a specific entity in the Business Central application.

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

Supported Accounts


Dynamics 365 Business Central Delete Snap Overview

Prerequisites

Limitations

  • The Business Central Delete 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, and display an exception when creating, updating, or deleting operations. Refer to API documentation for Business Central for more information about API limitations.

Known issues

  • The Business Central Delete 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. Displays a success message when the record is deleted.
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: Dynamics 365 Business Central Delete

Example: Business Central Delete
Company

String/Expression/ Suggestion

Specify the company registered with the Business Central application.

Default value: N/A

Example: My Company
Entity*

String/Expression

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

Specify or select the primary key from which you want to delete 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. For example, if you have four Primary keys in an entity, then you must pass the value for every field that you want to delete. If you use only one of the primary keys, the Snap fails.

Default value: N/A

Example: Id
Value

String/Expression

Specify the value of the key for which you want to delete 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 including the records with errors to the error view when an 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 delete the records in batches from the application.

Default value: 100

Example: 50
Timeout (seconds)

Integer/Expression

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

Default value: 60

Example: 100
Number of retries

Integer/Expression

Specify the maximum number of attempts 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 the amount of time in seconds 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 Business Central instance.
Key

String/Expression

Specify the key for the HTTP header.

Default value: N/A

Example: Accept
Value

String/Expression

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.