Skip to content

Instantly share code, notes, and snippets.

@jamesasu
Created August 6, 2019 03:24
Show Gist options
  • Save jamesasu/0785a18c3b1e9350cfbb2e5eb380e170 to your computer and use it in GitHub Desktop.
Save jamesasu/0785a18c3b1e9350cfbb2e5eb380e170 to your computer and use it in GitHub Desktop.
<script runat="server">
Platform.Load("Core", "1");
var api = new Script.Util.WSProxy();
try {
var cols = [ "ContactId", "Email" ];
var data = api.retrieve("DataExtensionObject[TEST SMS Info Capture]", cols);
if (data != null) {
Platform.Response.Write(Platform.Function.Stringify(data));
} else {
Platform.Response.Write('{}');
}
} catch(e) {
Platform.Response.Write(Platform.Function.Stringify(e));
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment