This file contains hidden or 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") | |
| var prox = new Script.Util.WSProxy(); | |
| var tsExKey = 'External Key'; //pass Triggered Send External Key | |
| var EmailAddress = '[email protected]'; //pass Email Address | |
| var SubscriberKey = '[email protected]'; //pass Subscriber Key | |
| var tsDef = { | |
| TriggeredSendDefinition: { | |
| CustomerKey: tsExKey | |
| }, |
This file contains hidden or 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"> | |
| var prox = new Script.Util.WSProxy(); | |
| var tsExKey = ''; //provide Triggered Send External Key | |
| var EmailAddress = ''; //pass Email Address | |
| var SubscriberKey = ''; //pass Subscriber Key | |
| var firstName = ''; //pass First Name | |
| var lastName = ''; //pass Last Name | |
| var tsDef = { | |
| TriggeredSendDefinition: { | |
| CustomerKey: tsExKey |
This file contains hidden or 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.1.1"); | |
| var subkey = "" //provide Sunscriber Key | |
| var email = "" //provide Email Address | |
| var prox = new Script.Util.WSProxy(); | |
| var sub = { | |
| SubscriberKey: subkey, | |
| EmailAddress: email, | |
| Lists: [{ |
This file contains hidden or 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
| <table style="padding: 20px;"><tr><td> | |
| <b>How would you like to identify the Data Extension?</b><br> | |
| <form action="%%=RequestParameter('PAGEURL')=%%" method="post"> | |
| <select name="DEprop"> | |
| <option value="Name">Name</option> | |
| <option value="CustomerKey">External Key</option> | |
| </select> | |
| equals | |
| <input type="text" name="DEval" value="" maxlength="128"><br> | |
| <input type="submit" value="Submit"> |
This file contains hidden or 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.1.5"); | |
| var DEprop = //use either "Name" or "Customer Key" | |
| var DEval = //provide either the Name or External Key | |
| var FindDE = DataExtension.Retrieve({Property:DEprop,SimpleOperator:"equals",Value:DEval}); | |
| var FolderID = FindDE[0].CategoryID; | |
| var DEname = FindDE[0].Name; | |
| var list = []; | |
| list.push(DEname); | |
| var path = function(id) { |
This file contains hidden or 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
| <soap-ENV:Body> | |
| <ExecuteRequestMsg xmlns="http://exacttarget.com/wsdl/partnerAPI"> | |
| <Requests> | |
| <Name>LogUnsubEvent</Name> | |
| <Parameters> | |
| <Name>SubscriberID</Name> | |
| <Value>123456</Value> | |
| </Parameters> | |
| <Parameters> | |
| <Name>SubscriberKey</Name> |
This file contains hidden or 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.1.1"); | |
| var subkey = Attribute.GetValue("_subscriberkey"); | |
| var jid = Attribute.GetValue("jobid"); | |
| var lid = Attribute.GetValue("listid"); | |
| var bid = Attribute.GetValue("_JobSubscriberBatchID"); | |
| var prox = new Script.Util.WSProxy(); | |
| var props = [ |
This file contains hidden or 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"); | |
| var subkey, jid, lue, lid, bid, lue_prop, Response; | |
| var subkey = Attribute.GetValue("_subscriberkey"); | |
| var jid = Attribute.GetValue("jobid"); | |
| var lid = Attribute.GetValue("listid"); | |
| var bid = Attribute.GetValue("_JobSubscriberBatchID"); |
This file contains hidden or 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.1.1"); | |
| try{ | |
| </script> | |
| %%[ | |
| VAR @skey, @jid, @reason, @lue, @lue_prop, @lue_statusCode, @overallStatus, @requestId, @Response, @Status, @Error | |
| SET @skey = _subscriberkey |
This file contains hidden or 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
| %%[ | |
| VAR @ts, @tsDef, @ts_extkey, @ts_email, @ts_sub, @ts_statusCode, @ts_statusMsg, @errorCode | |
| SET @ts = CreateObject("TriggeredSend") | |
| SET @tsDef = CreateObject("TriggeredSendDefinition") | |
| SET @ts_extkey = "ExternalKey" | |
| SET @ts_email = "[email protected]" | |
| SET @ts_subkey = _subscriberkey | |
| SetObjectProperty(@tsDef, "CustomerKey", @ts_extkey) | |
| SetObjectProperty(@ts, "TriggeredSendDefinition", @tsDef) |