Get Table Data

Reads the data of a table or a table-style list (grid) as a DataTable. Works on Windows, browser and SAP elements. If the table is not found or is empty, the activity throws an error. By default, Element uses the element found by the Get Element activity.


⬅️INPUT

Parameter

Type

Required

Description

Element

IElement

✅ Yes

The table to read. On SAP, it must be a table or table cell found with an SAP selector; SAP tables selected with a Windows selector cannot be read.

Timeout

TimeSpan

❌ No

In the browser, the maximum time to wait for the table to be read; if left empty, 5 minutes. On SAP, the maximum time to wait for the table to be read; if empty or 0, 30 seconds. Not used on Windows.


➡️OUTPUT

Parameter

Type

Description

Result

DataTable

The table read. In the browser and on SAP, all cells come as text (String). In the browser, column names are taken from the table headers; if there are no headers, the names Column1, Column2 … are given, and a number is appended to headers with the same name.