Subscribe

UiPath Activities

The UiPath Activities Guide

Query Entity Records

UiPath.DataService.Activities.QueryEntityRecords<UiPath.DataService.Definition.IEntity>

Description

Retrieves a list of records for the selected Entity from the UiPath Data Service, according to specified filters.

Properties

Common

  • ContinueOnError - Specifies if the automation should continue even when the activity throws an error. This field only supports Boolean values (True, False). The default value is False. As a result, if the field is blank and an error is thrown, the execution of the project stops. If the value is set to True, the execution of the project continues regardless of any error.

📘

Note:

If this activity is included in Try Catch and the value of the ContinueOnError property is True, no error is caught when the project is executed.

  • DisplayName - The display name of the activity.
  • Timeout (milliseconds) - Specifies the amount of time (in milliseconds) to wait for the activity to run before an error is thrown. The default value is 30000 milliseconds (30 seconds).

Misc

  • Private - If selected, the values of variables and arguments are no longer logged at Verbose level.
  • TypeArgument - The Entity type you want to use with the activity. The property only supports types imported from Data Service. This property is called Entity Type in the body of the activity. By default, UiPath.DataService.Definition.IEntity is selected.

Options

  • Related Record Depth - Specifies the depth of related records to be retrieved from the service. This property supports values from 1 to 3. The default value is 2.
  • Sort Ascending - Sorts records in ascending order based on the field specified in the Sort By property This field supports only Boolean values (True, False). The default value is True.
  • Sort By Field - The name of the field you want to sort retrieved records by. The name has to be same as a valid field in the selected Entity type and needs to have the same capitalization. By default, this field is set to Id.

Output

  • Output Records - The list of retrieved records from Data Service. This field only supports List objects of types imported from Data Service and must be of the same type as the selected Entity Type.

Pagination

  • Skip - Helps you skip the specified number of records. If the specified value is larger than total records, no records are retrieved. This property supports values greater than or equal to 0. By default, this property is set to 0.
  • Top - Specifies the maximum number of records retrieved out of total records. This property supports values from 1 to 1000. The default value for this field is 100.
  • Total Records - The total number of records matching the specified query filters, stored in an Int64 variable. This field supports only Int64 variables.

In the Body of the Activity

  • Entity Type - The Entity type you want to use with the activity. The property only supports types imported from Data Service. By default, UiPath.DataService.Definition.IEntity is selected.
  • Query - Click the Open Query Builder button to configure filters for the selected entity type to retrieve records from Data Service.
    In the Query Builder window:
    • From the first drop-down menu, select a field to filter by for the select entity type. You can select fields for any related entities as well.
    • From the second drop-down menu, select an operator to evaluate the selected field. The list of operators will change based on the type of selected field in first drop-down menu.
    • For the third expression field, provide a value or enter an expression for the selected field. The supported value will change based on the type of selected field in first drop-down menu.
    • Click Add if you want to add other conditions or groups, and select if All or Any of the conditions should be used to filter.
  • Output Records - The list of retrieved records from Data Service. This field only supports List objects of types imported from Data Service and must be of the same type as the selected Entity Type.

Updated 3 months ago


Query Entity Records


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.