Skip to main content

Get Desktop Table Rows (all)

Returns every cell in the grid / table as a JSON 2-D array — one inner array per row, one string per cell (Windows only). Designed for clean ForEach iteration over the rows. Errors when the grid exceeds 500 rows; for larger grids, use Get Table Row Count + Get Desktop Table Row (by index) in a While loop to paginate.

Category: Desktop Application Automation · Group: Desktop · Activity name: GetTableRows

The GetTableRows activity in the designer

Example

outputVariable = GetTableRows("<xPath>", checkOrphanedElements=False)

Inputs

NameTypeRequiredDefaultDescription
XPathstringYesXPath expression that identifies the grid / table element.
Check orphaned elementsbooleanFalseWhen the element is not found by its XPath, scan the parent window's area for elements detached from the UI Automation tree. Slower; enable only for windows known to orphan their elements.

Outputs

NameTypeDescription
outputVariablearraySpecifies the name of the variable that will store the rows as a JSON 2-D array (rows of cells).