Skip to content

Instantly share code, notes, and snippets.

@zuzannamj
Last active November 7, 2019 10:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zuzannamj/7cb779280766d0e70f4744b88556312e to your computer and use it in GitHub Desktop.
Save zuzannamj/7cb779280766d0e70f4744b88556312e to your computer and use it in GitHub Desktop.
<script runat="server">
Platform.Load("Core","1");
var prox = new Script.Util.WSProxy();
var cols = [
"SendID",
"SubscriberKey",
"EventDate",
"EventType",
"TriggeredSendDefinitionObjectID",
"BatchID",
"Client.ID",
"ListID"
];
var filter = {Property: "EventDate", SimpleOperator: "between", Value: ["2018-01-01T03:00:00.000Z", "2019-02-02T02:59:59.999Z"]};
var data = prox.retrieve("SentEvent", cols, filter);
Write(Stringify(data));
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment