Skip to content

Instantly share code, notes, and snippets.

@katydorjee
Last active December 5, 2023 08:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save katydorjee/e84c2a12337ce892ddba946b18748fb4 to your computer and use it in GitHub Desktop.
Save katydorjee/e84c2a12337ce892ddba946b18748fb4 to your computer and use it in GitHub Desktop.
Server Side Javascript - Retrieve Rows
<script runat="server">
Platform.Load("core","1");
var targetDE = DataExtension.Init('DataExtension EXTERNAL KEY').Rows.Retrieve();
for (var i = 0; i < targetDE.length; i++)
{
Write(targetDE[i].Field1+'<br>');
Write(targetDE[i].Field2+'<br>');
Write(targetDE[i].Field3+'<br>');
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment