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> | |
%%[ your AMPscript block goes here ]%% | |
<script runat="server"> | |
}catch(e){ | |
Write(Stringify(e)); |
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> | |
%%[ | |
set @email = emailaddr | |
if (@email != "") then | |
set @rows = LookupRows("LeadDataExtension","Email", @email) | |
set @rowCount = rowcount(@rows) |
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> | |
%%[ your AMPscript block goes here ]%% | |
<script runat="server"> | |
} | |
catch(e) { |
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
%%[ | |
set @email = emailaddr | |
if (@email != "") then | |
set @rows = LookupRows("LeadsDataExtension","Email", @email) | |
set @rowCount = rowcount(@rows) | |
if @rowCount > 0 then | |
set @row = Row(@rows, 1) | |
set @UID = Field(@row,"UID") | |
endif | |
endif |
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) |
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
<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"); | |
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
<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.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) { |