Dynamics 365 Business Central Search

Overview

This Snap searches for the required data for a specific entity in the Business Central application.

Note: The Business Central Search 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 the Timeout, Number of retries, and Retry interval fields.

Supported Accounts


Dynamics 365 Business Central Search Snap Overview

Known issues

  • The Company field in the Business Central Search Snap is optional for specific 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 while executing the request.
    Error message when Company field is blank

    Workaround: Specify the Company name for entities where it is mandatory.
  • When fetching Read related entities in the Business Central Search Snap 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: expected close marker for Object.

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

    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 provided details.

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. Returns the search results for the specified 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 Search

Example: BC Search
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
Filter condition Use this field set to specify the filter criteria based on which entities are returned.
Type

Dropdown list

Select the standard OData filter logical operator to use for the filter condition.

Default value: and

Example: or
Attribute

String/Expression/ Suggestion

Specify or select the field name to filter on. For comparison operators, the attribute must be of integer type.

Default value: N/A

Example: displayName
Operator

Dropdown list

Select the standard OData filter operator to use for the filter condition.

Default value: equal

Example: contains
Value

String/Expression

Specify the value for the attribute to filter on.

Default value: N/A

Example: John Doe
Query parameter Use this field set to specify the search query parameters and their values.
Parameter

String/Expression/ Suggestion

Specify or select the query parameter. Supported values: top, expand, filter.

Note: If you use top, its value must be less than the Page size value.

Default value: N/A

Example: top
Value

Integer/Expression

Specify the value associated with the query parameter.

Default value: N/A

Example: 10
Order by Use this field set to specify the order in which the items are returned.
Attribute

String/Expression/ Suggestion

Specify or select the attribute to order the results by.

Default value: N/A

Example: displayName
Sort order

Dropdown list

Select the sort order for the results.

Default value: ascending

Example: descending
Output fields Use this field set to specify 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
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.

Default status: Deselected

Page size

Integer/Expression

Specify the page size to fetch records quickly for larger data sets.

Default value: 100

Example: 50
Start page number

Integer/Expression

Specify a page number from which the loading of records should begin through the last record or load until the value 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 stops loading records.

Note: A value of 0 reads all the pages.

Default value: 0

Example: 5
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 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 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: 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 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.