LookupRows

Retrieves a rowset from a data extension where the field matches the specified value. You can specify additional field value pairs as part of an AND clause. This function returns a maximum of 2000 rows. To better control the number or the order of returned rows, use the LookupOrderedRows() function. This limitation helps enhance script performance.

LookupRows(1, 2, 3)

OrdinalTypeDescription
1stringRequiredName of the data extension.
2string or arrayRequiredName of the column to match for the row containing lookup value. You can also include an array of column names for use in a filter.
3string or arrayRequiredString value used to match the lookup value. You can also include an array of column values for use in a filter.