Skip to content

Instantly share code, notes, and snippets.

@katydorjee
Last active December 5, 2023 08:07
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 katydorjee/cffe66e2394012110c23c3905b5edb79 to your computer and use it in GitHub Desktop.
Save katydorjee/cffe66e2394012110c23c3905b5edb79 to your computer and use it in GitHub Desktop.
Server side javascript - DE LookupRows
<script runat="server">
Platform.Load("core","1");
var Lookup_value = 'apple';
var dataRows = Platform.Function.LookupRows('Data Extension name','Lookup field',Lookup_value);
if(dataRows && dataRows.length > 0) {
for(var i=0; i<dataRows.length; i++) {
Platform.Response.Write(dataRows[i]["Result_field_name"]);
}
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment