Dynamics 365 Business Central Create

Overview

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

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

Supported Accounts


Dynamics 365 Business Central Create Snap Overview

Limitations

  • The Business Central Create 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

  • Business Central metadata does not contain information about required fields. Therefore, the Mapper Snap upstream to the Business Central Create Snap does not display the mandatory fields (showing *) in the Target Schema, which is the expected behavior.
  • The Company field in the Business Central Create Snap is optional for a few entities, such as Subscriptions, and it is mandatory for the remaining entities. If the field is left blank, the Snap displays the following error:
    Error message when Company field is blank

    Workaround: Specify the Company name for mandatory entities.
  • The Microsoft Dynamics 365 Business Central Create Snap displays errors when you run the batch process with the error view enabled (500 Internal Server Error, Socket timeout error, Read timed out error). Workaround: 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 new 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 Create

Example: BC Create
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
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 create 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

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 More than 6000 requests were made in 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 are sent to Microsoft Business Central endpoint. All Snaps related to the Microsoft Business Central Snap include retry-after with <number of seconds> in the response header and automatically retry when they encounter a status 429 error. Wait for the retry to succeed.
HTTP 400 (Bad Request) The request is not valid for the selected Company/Entity (for example, invalid entity name or unsupported/invalid fields in the payload). For example, the value in the HTTP entity field is structured as an expression; but the expression toggle is off, the File Key fields contain inaccurate values, or there are special characters in the File Name fields. Verify the Company and Entity values and validate the request payload fields against the Business Central metadata for that entity.
Error 500 The Client secret or Client ID are not valid. Generate new Client secret.
Error 401 Token is invalid. Provide a valid token and reauthorize the account.