Dynamics 365 Business Central Read

Overview

This Snap reads the user details for a specific entity.

Note: The Business Central Read Snap works as expected when passing values from upstream Snaps for fields such as Entity, Start page number, and Max page number, and does not support upstream values for Timeout, Number of retries, and Retry interval (seconds).

Supported Accounts


Dynamics 365 Business Central Read Snap Overview

Prerequisites

Limitations

None.

Known issues

  • The Company field in the Business Central Read 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 the following error:
    Error message when Company field is blank

    Workaround: Specify the Company name for entities where it is mandatory.
  • When fetching Read related entities for a specific entity with selected output fields, the Snap displays an error if you do not specify all the key fields in the Output fields section.

    Error: Unexpected end-of-input: an expected close marker for an Object.


    Known issue with Read related entities and Output fields

    Workaround: Ensure you provide all the key fields in the Output fields.
  • The Business Central Read Snap does not support the following entities. The Snap displays an error when you configure with these entities: applyVendorEntries, attachments, contactsInformation, dimensionSetLines, pdfDocument, pictures.

    Error: Failure: Error when executing the request. Reason: (Application_DialogException) You must specify a parentId in the request body. [HTTP/1.1 400 Bad Request]

    Resolution: Verify the details provided.

Snap views

Type Description Examples of upstream and downstream Snaps
Input This Snap supports a minimum of zero and a maximum of one document input view.
Output This Snap supports a minimum of one and a maximum of one document output view. Reads the user details for a specific 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: Dynamics 365 Business Central Read

Example: Business Central Read
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 from which you want to read the records.

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 for which you want to read 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 do this, the Snap fails.

Default value: N/A

Example: Id
Value

String/Expression

Specify the value of the key from which you want to read the record.

Default value: N/A

Example: 2998d72e-fac9-ed11-94cc-000d3a220b2f
Output fields Use this field set to fetch the fields you want the Snap to display in the output.
Output field

String/Expression/ Suggestion

Specify or select the fields that you want to display in the output.

Default value: N/A

Example: givenName
Read related entities Use this field set to specify the related entities of the specific entity.
Read related entity

String/Expression/ Suggestion

Specify or select the related entities that you want to display in the output in addition to the fields in Output fields.

Default value: N/A

Example: defaultDimensions
Error out on no results

Checkbox

Select this checkbox to display the original document along with the error message No records found in the error view if no records are returned for the selected criteria.

Note: If you deselect the checkbox, the Snap ignores the empty results and shows nothing in the output view. If you are using the Primary key field, this option is ignored and the Snap throws a 404 error if the record is not found.

Default status: Deselected

Page size

Integer/Expression

Specify the number of records you want to fetch per page for large datasets.

Default value: 100

Example: 50
Start page number

Integer/Expression

Specify the page number from which the fetching of records should begin until the last record or until the page number specified in the Max page number field.

Default value: 1

Example: 10
Max page number

Integer/Expression

Specify the page number after which the Snap should stop reading or fetching records.

Note: The value of 0 reads all the pages. If you do not provide any value in this field, the default value (0) is used.

Default value: 0

Example: 10
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 retry attempts for failures.

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 custom headers in the form of 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: Execute only

Example: Validate & Execute

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 There are too many requests sent to Business Central endpoint. The Microsoft Business Central related Snaps 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.