Skip to content

Instantly share code, notes, and snippets.

@camrobert
Created January 6, 2023 09:12
Show Gist options
  • Save camrobert/1c6431eeb527e19baa9db810a6525fd5 to your computer and use it in GitHub Desktop.
Save camrobert/1c6431eeb527e19baa9db810a6525fd5 to your computer and use it in GitHub Desktop.
Code Snippet
<script runat="server">
Platform.Load("Core","1");
try {
var prox = new Script.Util.WSProxy();
var cols = ["Name","CustomerKey","CategoryID"];
var filter = {Property: "Name",SimpleOperator: "equals",Value: "Cam DE"};
var res = prox.retrieve("DataExtension",cols,filter);
//Write('Message: '+ Stringify(res));
for (s = 0; s < res.Results.length; s++) {
Write(Stringify(res.Results[s])+"<br>");
}
}
catch(error) {
Write('Message: '+ Stringify(error));
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment