QuestionQ23

VerifiedEmail Build

A customer has several values that must be used in the body of an email send:

  • The data will be stored in a reference data extension related by SubscriberKey.
  • There can be one or more records for each subscriber.
  • The audience is typically more than 1 million subscribers.
  • The content is time-sensitive and must be sent as quickly as possible.
  • The customer is not using "Catch and release" sending.
  • The reference data extension has 25 columns.

Which method should be used?

Explanation

LookupOrderedRows() retrieves a rowset from a data extension, so one call can return multiple records for a SubscriberKey and expose the fields in those records. A single Lookup() call returns one requested column value and, when multiple records match, returns only the first matching value; it therefore does not meet the multi-record, 25-column requirement. The Server-Side JavaScript LookupOrderedRows() function is the correctly named rowset lookup option.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!