Last active
December 2, 2019 09:35
-
-
Save zuzannamj/33aaf3ff1137f5baad736557758ac327 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
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") ]%% | |
• Order item %%=v(@counter)=%%: %%=v(@orderItem)=%%<br> | |
%%[ next ]%% | |
%%[ else ]%% | |
No items to display | |
%%[ endif ]%% | |
<br> | |
We hope to see you again soon! | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment