Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Dear Customer,<br>
Here are the details of your order:<br>
%%[ var @rows, @row, @rowCount, @subKey, @counter, @orderItem
set @subKey = _subscriberkey
set @rows = LookupRows("Orders","CustomerId", @subKey)
set @rowCount = rowcount(@rows)
if @rowCount > 0 then
for @counter = 1 to @rowCount do
set @row = row(@rows, @counter) /* get row based on counter */
set @orderItem = field(@row,"OrderItem") ]%%
&#8226; Order item %%=v(@counter)=%%: %%=v(@orderItem)=%%<br>
%%[ next ]%%
%%[ else ]%%
No items to display
%%[ endif ]%%
We hope to see you again soon!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.