Skip to content

Instantly share code, notes, and snippets.

@zuzannamj
Last active February 10, 2020 16:52
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 zuzannamj/2c8719765ec45aa947ee94528dd623a4 to your computer and use it in GitHub Desktop.
Save zuzannamj/2c8719765ec45aa947ee94528dd623a4 to your computer and use it in GitHub Desktop.
<script runat="server">
Platform.Load("Core", "1")
var prox = new Script.Util.WSProxy();
var tsExKey = 'External Key'; //pass Triggered Send External Key
var EmailAddress = 'example@example.com'; //pass Email Address
var SubscriberKey = 'example@example.com'; //pass Subscriber Key
var tsDef = {
TriggeredSendDefinition: {
CustomerKey: tsExKey
},
Subscribers: [{
EmailAddress: EmailAddress,
SubscriberKey: SubscriberKey
}]
};
var res = prox.createItem('TriggeredSend', tsDef);
Write(Stringify(res));
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment