Skip to content

Instantly share code, notes, and snippets.

@naveenvm93
Last active April 11, 2021 16:56
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 naveenvm93/454e7d830f46a2920f20963f642f0976 to your computer and use it in GitHub Desktop.
Save naveenvm93/454e7d830f46a2920f20963f642f0976 to your computer and use it in GitHub Desktop.
%%[
/* Get the order data from data extension */
Set @OrderData = [OrderData]
]%%
<br>
<b>Retrieve First Name:</b><br>
&nbsp;
<div style="text-align: left;">
First Name - {{FirstName}}<br><br>
<b>Retrieve Product Name:</b><br>
{{.dataobject JsonVar type=variable source=@OrderData maxrows=20}}
{{.data}}
{"target":"@OrderData"}
{{/data}}
{{/dataobject}}
{{#each JsonVar}}
{{#if SKU != "104176"}}
Product Name - {{Product_Name}}<br>
{{.datasource JSONexcess type=nested maxRows = 10}}
{{.data}}
{"target" : "JsonVar.Product_Ratings"}
{{/data}}
Number_of_Ratings - {{JSONexcess.Number_of_Ratings}}<br>
{{/datasource}}
{{/if}}
{{/each}}
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment