Skip to main content

getTableRow

Get a single row from a table.

Parameter

KeyTypeDescription
namestringTable name.
indexnumberZero-based row index. Mutually exclusive with keyColumn + key.
keyColumnstringColumn to search in. Mutually exclusive with index.
keystring|numberValue to match in keyColumn. Required when keyColumn is specified.

Return value

An object mapping column names to their values for the matched row.

Examples

Get row by index:

getTableRow {"name": "MyTable", "index": 0}

Get row by key lookup:

getTableRow {"name": "MyTable", "keyColumn": "Product", "key": "MyProduct"}