Skip to main content

Filter DataTable

Description

Use this Activity to filter the data from the specified Source DataTable and create a new Target DataTable.

This Activity allows you to specify the Source and Target DataTable objects and the configuration dialog to set the appropriate filter to be applied on Source DataTable.

On clicking on the Configure button, the Filter DataTable Configuration dialog pops up through which you can specify the filter.

Filter Rows

  • Include Rows – Select this option to specify the rows of DataTable to be included to target DataTable(by default selected).

  • Exclude Rows – Select this option to specify the rows of Source DataTable to exclude in the filtered rows to be added to the target DataTable.

  • Logic – The AND or OR logic to perform between two conditions.

  • Column Name – The Column's name is based on which the rows have to be filtered.

  • Condition – Specify the operation to perform on a column. Below are the following conditions available.

OperatorDescriptionSupported Data Type
<Selected column value is lesser than the specified valueInt, Float, DateTime
>Selected column value is greater than the specified valueInt, Float, DateTime
<=Selected column value is lesser than or equal to specified valueInt, Float, DateTime
>=Selected column value is greater than or equal to specified valueInt, Float, DateTime
=Selected column value is equal to specified valueString, Int, Float, DateTime
!=Selected column value is not equal to specified valueString, Int, Float, DateTime
Is EmptySelected column value is emptyString
Is Not EmptySelected column value is not emptyString
ContainsSelected column value contains the specified textString
Starts WithSelected column value starts with the specified textString
Does Not Start WithSelected column value does not start with the specified textString
Ends WithSelected column value ends with the specified textString
Does Not End WithSelected column value does not end with the specified textString
LikeSelected column value matches the specified patternString
Not LikeSelected column value does not match the specified patternString
InSelected column value exists inside the specified value rangeInt, Float, DateTime
Not InSelected column value does not exist inside the specified value rangeInt, Float, DateTime
  • Value – Specify the value to compare with the column value

Choose Columns

  • Select All Columns – The target DataTable contains all columns as in Source (by default selected).

  • Include Columns – Specify the columns to include from Source to Target.

  • Exclude Columns - Specify the columns to exclude from Source to Target.

  • Column Name – Column name of the Source DataTable to include or exclude.

For reference - click

Properties

Input

  • Source - Specify the Source DataTable object.

Misc

  • DisplayName – The display name of the Activity.
  • Private – By default, Activity will log the values of your properties inside your workflow. If private is selected, then it stops logging.

Optional

  • Continue On Error – It Specifies whether the automation should continue even when the Activity throws an error. If True, the Activity continues without throwing any exceptions. If False, the Activity throws an exception. The default value is False.
    note

    Catches no error if this Activity is present inside the Try-Catch block and the value of this property is True.

Output

  • Target - Returns the Target DataTable.

Example

Download Example

Filter Datatable