Skip to content

Instantly share code, notes, and snippets.

@jdeblank
Created May 9, 2019 05:58
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 jdeblank/ae5952c82a150c21663c1b6169748cc3 to your computer and use it in GitHub Desktop.
Save jdeblank/ae5952c82a150c21663c1b6169748cc3 to your computer and use it in GitHub Desktop.
<script runat="server">
Platform.Load("core","1.1.5");
var prox = new Script.Util.WSProxy();
var queryAllAccounts = true;
var cols = ["Client.ID","CustomerKey","ListName","ID"];
var filter = {
Property: "ListClassification",
SimpleOperator: "equals",
Value: "PublicationList"
};
var desc = prox.retrieve("List", cols, filter, queryAllAccounts);
Write(Stringify(desc));
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment