Skip to content

Instantly share code, notes, and snippets.

@zuzannamj
Created March 22, 2021 09:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zuzannamj/82920c7b6ca2f36e9d14395e06b2f043 to your computer and use it in GitHub Desktop.
Save zuzannamj/82920c7b6ca2f36e9d14395e06b2f043 to your computer and use it in GitHub Desktop.
%%[
set @CustomerID = AttributeValue("CustomerID")
set @rows = LookupRows("Orders","CustomerID",@CustomerID)
set @rowCount = RowCount(@rows)
for @counter = 1 to @rowCount do
set @row = row(@rows,@counter)
set @orderItem = field(@row,"Item")
]%%
%%=v(@orderItem)=%%
%%[ next ]%%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment