Skip to content

Instantly share code, notes, and snippets.

@zuzannamj
Last active December 2, 2019 10:38
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/2fb4aecc9d28b0ad74f8da1fea286570 to your computer and use it in GitHub Desktop.
Save zuzannamj/2fb4aecc9d28b0ad74f8da1fea286570 to your computer and use it in GitHub Desktop.
<script runat="server">
Platform.Load("core","1");
var custId = "0031t000005D98UAAS"
var OrdersDE = DataExtension.Init("Orders");
var rows = OrdersDE.Rows.Lookup(["CustomerId"], [custId]);
if(rows.length >= 1) {
for (i = 0; i < rows.length; i++) {
OrderItem = rows[i]["OrderItem"];
Write("&#8226; OrderItem " + i + ":" + OrderItem + "<br>");
}
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment