Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

Table connector methods

The Table connector provides multiple methods that perform various actions on tabular data as part of an automation Workflow in the RPA Desktop Design Studio. For example, tasks such as getting a table, getting a row data, and removing empty rows.

SetTable

Inserts a table into the workflow. The SetTable method must be used before you do any other operations on a data table. You must provide the table object that needs to be set.

Parameter NameDescriptionData Port typeData type
Table

Name of the table that you want to add or modify.- Example

DataTable

Data InDataTable

AddColumn

Adds a column to a table. The position of the column is determined by the column index value that you specify. You must provide the name of the new column and the column index at which the new column needs to be added.

Parameter NameDescriptionData type
Name

Name of the new column that you want to add.- Example

Customer data

String
ColumnIndexIndex of the column where the new column needs to be added. By default, -1 is the index value that you can update. For example, 0, 1, 2 can indicate the positions of columns from the left to the right.Integer

AddColumns

Adds multiple columns to a table by accepting column names from another method or component. To view the columns added, use the GetTable method. You must provide a list of names of new columns which needs to be added in the datatable.

Parameter NameDescriptionData type
Names

Accepts names of columns in the form of an array, array list, or list.- Example

{ "OrderID", "CustomerName", "OrderDate", "Status"};

IEnumerable

AddRow

Adds a row and its contents at the specified index. You must provide the RowIndex at which the row needs to be added.

To set the index values where you add the contents of the row, do the following actions:

  1. Click the component settings icon (
Image omitted: component-settings-icon.png
Component settings icon.\).
  1. Click the add index icon (
Image omitted: add-image-icon.png
Add index icon.\).
  1. Enter the index.
  2. Repeat the steps to add multiple indexes.
  3. Click OK.

    Note: A Data In port is added with each row that you add.

Parameter NameDescriptionData Port typeData type
RowIndexIndex of row at which the new row needs to be added.Data InInteger

GetTable

Returns the table that you created with the AddColumn, AddColumns, and AddRow methods.

Note: You must execute this method after executing the AddColumn, AddColumns, and AddRow methods.

Parameter NameDescriptionData Port typeData type
DataTableReturns DataTable type representing underlying DataTable object.Data OutDataTable

ClearColumns

Clears all column values from a table.

ClearRows

Clears all row values from a table.

DeleteColumnByIndex

Deletes a column based on the index value that you specify. You must provide the index of the column to be deleted to the Index parameter.

Parameter NameDescriptionData Port typeData type
IndexIndex value of the column that must be deleted.Data InInteger

DeleteColumnByName

Deletes a column based on the name that you specify. You must provide the name of the column that needs to be deleted.

Parameter NameDescriptionData Port typeData type
NameName of the column that must be deleted.Data InString

DeleteRow

Deletes a row based on the index value provided. Before executing this method, you must assign custom index values to the rows. You must provide index of the row which needs to be deleted.

Parameter NameDescriptionData Port typeData type
IndexIndex of the row which needs to be deleted.Data InInteger

FilterAndSort

Filters and sorts the table based on a expression that you specify. You must provide the expression to calculate the value of a column, column name to be sorted in SortColumnName and Order. It returns the count of the rows available based on the criteria set and also returns the complete data table.

Parameter NameDescriptionData Port typeData type
Expression

Expression to calculate the value of a column.- Example

"Status = 'Pending'" - Based on this query expression, the data is filtered.

Data InString
SortColumnName

Column name by which the method will sort the data.- Example

Date - The method will sort the data based on the Date column.

Data InString
OrderOrder of the column nameData InString
DataTableReturns the data table containing filtered data from the underlying DataTable object.Data OutDataTable
CountReturns the count of rows after sort.Data OutInteger

FilterByRegEx

Filters the table data based on a regular expression or RegEx that you specify. You must provide the column index to ColumnIndex parameter and the regular expression to RegExpression parameter, which are used for filtering. This method returns the rows count and the data table.

Parameter NameDescriptionData Port typeData type
ColumnIndexIndex of column on which filtering logic needs to be applied. The default index value is -1 for the first column. Providing a custom index value is optional. If the field receives no custom index value, the method automatically sets the order of the columns.Data InInteger
RegExpressionRegular expression which is used as a filtering logic.Data InString
ReturnReturns a DataTable containing filtered data from the underlying DataTable object.Data OutDataTable
RowsCountReturns the number of rows available based on the filter using RegExpression.Data OutInteger

FindText

Finds the text in the table that you specify based on one or more criteria and returns cell value. You must provide the text to search in SearchText parameter, position from where the search should start in StartPosition and the type of match required.

Parameter NameDescriptionData Port typeData type
SearchText

Text to be searched in the table.- Example

"John Doe"

Data InString
StartPositionPosition of the column from where the search should start.Data InInteger
MatchTypeType of match of the text:- ExactMatch: The specified text and the searched text must match exactly. This is a default value. - MatchCase: The specified text case should match the case of the searched text. - Contains: The specified text should contain one or more characters of the searched text.Data InMatchType
CellValueReturns the value in the cell based on the search.Data OutObject
ColIndexReturns the index of the column that has that searched text.Data OutInteger
RowIndexReturns the index of the row that has that searched text.Data OutInteger

GetCellValue

Returns the value in a cell based on the row and column index values that you specify. You must provide the row number and column number of the cell from which value needs to be retrieved.

Parameter NameDescriptionData Port typeData type
RowRow number of the required cell.Data InInteger
ColumnColumn number of the required cell.Data InInteger
ReturnReturns Object type representing cell value from underlying DataTable object.Data OutObject

GetCellValueIfRowHas

Returns True if the method finds the text that you specify and the row values based on the index values that you specify. You must provide the text to be searched. Perform the search on a particular column provided by SearchColumnIndex and start searching the text from a particular row provided to StartRowIndex. Default value is 1 meaning 1st row of the table.

To specify the row values, you must configure the method.

  1. Click the method settings icon (
Image omitted: component-settings-icon.png
Method settings icon.\).
  1. Click the add row index icon (
Image omitted: add-image-icon.png
Add row index.\).
  1. Update the row index value data type.
  2. Enter the row index value.
  3. Click OK.
Parameter NameDescriptionData Port typeData type
SearchText

Text to be searched in the row.- Example

"John Doe"

Data InString
SearchColumnIndexIndex of column in which the text needs to be searched.Data InInteger
StartRowIndexStarting row from which the search needs to be performed.Data InInteger
FoundReturns True if the text matched.Data OutBoolean

GetCellValues

Returns values of the multiple cells based on the index values that you specify. You must provide the row index of the cell whose value needs to be retrieved. Additional row indexes can also be added to get those cell values using the config window.

To configure, do the following actions:

  1. Click the method settings icon (
Image omitted: component-settings-icon.png
Method settings icon.\).
  1. Click the add row index icon (
Image omitted: add-image-icon.png
Add row index.\).
  1. Update the row index value data type.
  2. Enter the row index value.
  3. Click OK.
Parameter NameDescriptionData Port typeData type
RowIndexIndex of the row whose cell value is required.Data InInteger

GetCount

Returns the total count of rows and columns of a data table.

Parameter NameDescriptionData Port typeData type
RowReturns the total count of rows created.Data OutInteger
ColumnReturns the total count of columns created.Data OutInteger

GetRowData

Returns row data based on the index value that you specify. You must provide the index value of the row from which data needs to be retrieved.

Parameter NameDescriptionData Port typeData type
RowIndexIndex value of the row from which data needs to be retrieved.Data InInteger
ReturnReturns list Of Object type representing row data from underlying DataTable object. The IEnumerable data type accepts the row value data as array, list, or array list and returns as object.Data OutIEnumerable

GetTableAsCSV

Saves the table data in the CSV format to the local drive. You must provide the file path to which the CSV file needs to be written to and also provide the separator between the two records.

Parameter NameDescriptionData Port typeData type
Filepath

Folder path in the local drive where the method saves the table data as CSV. In the file path, you must include the filename.- Example

D:\Projects\Customer data.csv

Data InString
Delimiter

Delimiter that separates the table data.- Example

Comma (",")

Data InString

GetTableAsHTML

Returns the table data in an HTML file format. Before you execute this method, you must create columns, rows, and data and then execute them with the GetTable method.

Parameter NameDescriptionData Port typeData type
ReturnReturns the tabular data in the HTML format.Data InString

GetTableAsJson

Returns the table data in a JSON file format. Before you execute this method, you must create columns, rows, and data and then execute them with the GetTable method.

Parameter NameDescriptionData Port typeData type
ReturnReturns the tabular data as a JSON object.Data InString

LoadFromExcel

Imports the sheet or data from the specified Excel file to the data table. You must provide the path of the Excel file from which the data needs to be loaded. Give the sheet name or provide a query to SheetOrQuery parameter. If a query is provided, then set the IsQuery Boolean to True, and if a sheet name is provided, then set the IsQuery Boolean to False. You can test whether the data was imported correctly with the GetTable method.

Parameter NameDescriptionData Port typeData type
FilePathPath to the Excel file from which the data is imported.- **** D:\\Projects\\Sales\\Sales data.xlsxData InString
SheetOrQueryIndicates whether data is imported from a sheet in the Excel file or through a query to the file.Data InString
IsQueryBoolean value to indicate whether the data is loaded through a query.Data InBoolean

MatchColumn

Matches another datatable's columns with the current table's column based on the column index. You must provide the datatable whose columns need to be matched provided in dtTable with the index of column in current table in ColumnIndex parameter. Before you execute this method, you must execute the GetTable method.

Parameter NameDescriptionData Port typeData type
dtTableData table whose columns need to be matched.Data InDataTable
ColumnIndexIndex of the column with which it has to be matched.Data InInteger
ReturnReturns a true or false value indicating whether the specified column is matched.Data OutBoolean

RemoveEmptyColumns

Removes all the empty columns in the table and returns the data table after the operation.

Parameter NameDescriptionData Port typeData type
ReturnReturns the data table after removing the empty columns.Data OutDataTable

RemoveEmptyRows

Removes all the empty rows in the table and returns the data table after the operation.

Parameter NameDescriptionData Port typeData type
ReturnReturns the data table after removing the empty rows.Data OutDataTable

SetCellValue

Adds data to a cell based on column and row index values. You must provide the row number, column number and the value in Value parameter that needs to be set.

Before you execute this method, you must create columns, rows, and data and then execute them with the GetTable method.

Parameter NameDescriptionData Port typeData type
RowIndex number of the row which the method will use to fill data.Data InInteger
ColumnIndex number of the column which the method will use to fill data.Data InInteger
ValueValue that must be set in the cell.Data InObject

SetCellValueIfRowHas

Sets cell value(s) of a particular row if row contains specified text. You must provide the row index in the Row Index configuration dialog. The name of the row index parameter added is considered for setting the value and the value provide to that parameter is the actual value that will be set to the row of the table.

Parameter NameDescriptionData Port typeData type
SearchTextText to be searched in the row.Data InString
SearchColumnIndexIndex of the column in which the text needs to be searched.Data InInteger
StartRowIndexStarting row from which the text needs to be searched.Data InInteger
FoundReturns True if the text matches.Data OutBoolean

SetColumnName

Updates a column name based on the column index and name that you specify. You must first create or import a table by using the SetTable method.

Parameter NameDescriptionData Port typeData type
ColumnIndexIndex of the column which needs to be named.Data InInteger
NameNew name of the column.Data InString

SetJson

Converts a JSON object to a DataTable. Provide JSON data that needs to be converted to DataTable.

Tip: To create a JSON object, use the GetTableAsJson method and then pass the values to the SetJson method.

Parameter NameDescriptionData Port typeData type
JSONJSON object needs to be converted to a DataTable.Data InString

SetList

Converts a list to a DataTable. Provide the data list that needs to be converted to table.

Parameter NameDescriptionData Port typeData type
Data

List type data that needs to be converted to table. The IEnumerable input data type accepts the data as array, list, or array list.- ****

{ "OrderID": 102, "CustomerName": "John Doe", "OrderDate": "2024-02-02", "Status": "Shipped" };

Data InIEnumerable

SetRowData

Inserts the specified row data into a data table. You must provide the index number of the row to the RowIndex parameter and data that needs to be added to the row to the Data parameter.

Parameter NameDescriptionData Port typeData type
RowIndexIndex number of the row that needs to be modified.Data InInteger
Data

Data in a row that is inserted into a data table. The IEnumerable input data type accepts the data as array, list, or array list.- ****

{ "OrderID": 102, "CustomerName": "John Doe", "OrderDate": "2024-02-02", "Status": "Shipped" };

Data InIEnumerable

ToList

Converts the specified table to a list.

Parameter NameDescriptionData Port typeData type
ReturnReturns an IEnumerable representing a DataTable object converted into a List. The IEnumerable data type accepts the data as array, list, or array list and returns the list.Data OutIEnumerable

VLookUp

Gets cell value(s) of a particular row if row contains specified text.

To input the values, do the following actions:

  1. Click the method settings icon (
Image omitted: component-settings-icon.png
Component settings icon.\).
  1. Click
Image omitted: add-image-icon.png
Add value icon..
  1. Enter the values.
  2. Click OK.
Parameter NameDescriptionData Port typeData type
Port nameName of the port of the component.Data InString
SearchTextText that the method will search in the rows and columns.Data InString
DataColumnIndexInteger value that indicates the order of the column from the left. The default index value is -1 for the first column. Providing a custom index value is optional. If the field receives no custom index value, the method automatically sets the order of the columns.Data InInteger
SearchColumnIndexInteger value that indicates the order of the column from the left. The default index value is -1 for the first column. Providing a custom index value is optional. If the field receives no custom index value, the method automatically sets the order of the columns.Data InInteger
StartRowIndexInteger value that indicates the order of the column from the left. The default index value is -1 for the first row. Providing a custom index value is optional. If the field receives no custom index value, the method automatically sets the order of the columns.Data InInteger

VLookUpSet

Sets cell value(s) of a particular row if row contains specified text.

To input the values, do the following actions:

  1. Click the method settings icon (
Image omitted: component-settings-icon.png
Component settings icon.\).
  1. Click
Image omitted: add-image-icon.png
Add value icon..
  1. Enter the values.
  2. Click OK.
Parameter NameDescriptionData Port typeData type
Port nameName of the port of the component.Data InString
SearchTextText that the method will search in the rows and columns.Data InString
DataColumnIndexInteger value that indicates the order of the column from the left. The default index value is -1 for the first column. Providing a custom index value is optional. If the field receives no custom index value, the method automatically sets the order of the columns.Data InInteger
SearchColumnIndexInteger value that indicates the order of the column from the left. The default index value is -1 for the first column. Providing a custom index value is optional. If the field receives no custom index value, the method automatically sets the order of the columns.Data InInteger
StartRowIndexInteger value that indicates the order of the column from the left. The default index value is -1 for the first row. Providing a custom index value is optional. If the field receives no custom index value, the method automatically sets the order of the columns.Data InInteger

Parent Topic:Table