Created
January 6, 2023 09:12
-
-
Save camrobert/1c6431eeb527e19baa9db810a6525fd5 to your computer and use it in GitHub Desktop.
Code Snippet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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