This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing"> | |
<s:Header> | |
<a:Action s:mustUnderstand="1">Create</a:Action> | |
<a:MessageID>urn:uuid:9037cc93-13f4-433b-b3f9-250ffa643ea8</a:MessageID> | |
<a:ReplyTo> | |
<a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address> | |
</a:ReplyTo> | |
</s:Header> | |
<s:Body xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
This file contains 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 @ret, @filter, @status, @rr | |
Set @ret = CreateObject("RetrieveRequest") | |
SetObjectProperty(@ret,"ObjectType","TriggeredSendDefinition") | |
AddObjectArrayItem(@ret,"Properties","Name") | |
Set @filter = CreateObject("SimpleFilterPart") | |
SetObjectProperty(@filter,"Property","CustomerKey") |
This file contains 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 @ret, @filter, @status, @rr | |
Set @ret = CreateObject("RetrieveRequest") | |
SetObjectProperty(@ret,"ObjectType","TriggeredSendDefinition") | |
AddObjectArrayItem(@ret,"Properties","Name") | |
Set @filter = CreateObject("SimpleFilterPart") | |
SetObjectProperty(@filter,"Property","CustomerKey") |
This file contains 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 @str1, @str1b, @str2, @str2b, @str3, @str3b, @str4, @str4b | |
set @str1 = "whee 1/2 whoop" | |
set @str1b = replace(@str1,regexmatch(@str1, "\s\w/\w\s" , 0 , "IgnoreCase"), " ") | |
set @str2 = "whee *derp* whoop" | |
set @str2b = replace(@str2,regexmatch(@str2, "\*\w+\*" , 0 , "IgnoreCase"), "") | |
set @str3 = "whee (whatev) whoop" | |
set @str3b = replace(@str3,regexmatch(@str3, "\s\(.+\)\s" , 0 , "IgnoreCase"), " ") |
This file contains 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
<html> | |
<body style="font-family:sans-serif"> | |
<a href="%%profile_center_url%%">Base - Profile/Preference Center</a> | |
<br/><a href="%%subscription_center_url%%">Base - Subscription Center</a> | |
<br/><a href="%%unsub_center_url%%">Base - One-Click Unsubscribe</a> | |
<br/><a href='%%=MicrositeURL(111111,"subscriberMID", "88888888")=%%'>Custom Profile/Preference Center</a> | |
<br/><a href='%%=MicrositeURL(222222,"subscriberMID", "88888888")=%%'>Custom Subscription Center</a> | |
<br/><a href='%%=MicrositeURL(333333,"subscriberMID", "88888888")=%%'>One-Click Unsubscribe</a> | |
<p>This email was sent by: | |
<b>%%Member_Busname%%</b> |
This file contains 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 @subscriberMID | |
set @subscriberMID = iif(empty(RequestParameter("subscriberMID")),memberid, RequestParameter("subscriberMID")) | |
]%% |
This file contains 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 @products = LookupOrderedRows("ProductDE",6, "AvgCustomerRating desc" ,"ApprovedForEmail","true") | |
set @productCount = rowcount(@products) | |
set @productXML = "<products>" | |
for @i = 1 to @productCount do | |
set @product = Row(@products, @i) |
This file contains 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 @productPos = 1 ]%% | |
%%=TreatAsContent(ContentAreaByName("My Contents\ProductDisplay"))=%% | |
%%[ set @productPos = 2 ]%% | |
%%=TreatAsContent(ContentAreaByName("My Contents\ProductDisplay"))=%% | |
%%[ set @productPos = 3 ]%% | |
%%=TreatAsContent(ContentAreaByName("My Contents\ProductDisplay"))=%% | |
<a href="%%profile_center_url%%">Profile/Preference Center</a> |
This file contains 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 @node = BuildRowsetFromXML(@productXML,concat("/products/product[",@productPos,"]/productImageURL"),1) | |
set @productImageURL = Field(Row(@node, 1),'Value') | |
]%% |
This file contains 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
<img style="display: block;" src="%%=v(@productImageURL)=%%" alt="" width="150" border="1" /> | |
OlderNewer