Skip to content

Google Sheets — Find row

Type: googlesheets-find-row  ·  Package: Google Sheets Activities v1.0.0  ·  Output: object

Finds the first row where a column matches a value, and returns the entire column. It is the equivalent of a BUSCARV (VLOOKUP): locate a customer record, an order, an appointment by its identifier.

Searches the column column (letter like A or number like 1) for value, and returns the row found. With has-headers = true (default) returns it as a dictionary (key = column name); if not, as a list of values. The comparison ignores capital letters and spaces.

ParameterEditorDescription
columnexpressionColumn to search for: letter (A, B) or number (1, 2).
valueexpressionValue to look for.
ParameterEditorDescription
sessionsessionGoogle Sheets — Open session. Optional: within a body it is inherited.
sheetexpressionSheet where to search.
rangeexpressionSearch range. By default, all columns (A:Z).
has-headersbooleanFirst row as headers → result as dictionary. By default true.

Returns the row found (a dictionary if has-headers, or a list), or null if there is no match.

Google Sheets — Find row session = = hoja column = "A" value = = nit has-headers = true → output: cliente
If condition = = !isNull(cliente)
└─ then:
Log message = = "Cliente: " + str(cliente["Nombre"])