This function became available in Marketing Cloud Next during the Summer ’26 release (API version 67.0).
Syntax
1Row(rowset, rowPosition)
The Row() function has two parameters:
rowset (string): Required. The rowset, array, or object to return a row from.
rowPosition (string): Required. The row number to return. The first row is row 1.
Usage
To use the function, pass it a rowset, and the row number that you want to return. This example sets the value of @row to the first row of the rowset contained in the @rowset variable.
1%%[2 Set @row = Row(@rowset, 1)3]%%
You can combine the Row() function with the Field() function to output a specific piece of data from the specified row. This example creates a rowset from JSON data. The Row() function retrieves the first row from the rowset. The Field() function retrieves the value of the “Price” attribute from the first row.