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
<?php | |
/* | |
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: | |
:: Formerly known as::: | |
:: GIFEncoder Version 2.0 by László Zsidi, http://gifs.hu | |
:: | |
:: This class is a rewritten 'GifMerge.class.php' version. | |
:: | |
:: Modification: |
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
<a href='%%=MicrositeURL(888888,"subscriberMID", "12345678")=%%'>Update Profile</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
<script type="text/javascript" runat="server"> | |
Platform.Load("core", "1.1.1"); | |
</script>%%[set @subscriberMID = RequestParameter("subscriberMID")]%%<script type="text/javascript" runat="server"> | |
if (Variable.GetValue("@subscriberMID") != "") { | |
memberid = Variable.GetValue("@subscriberMID"); | |
} else { | |
memberid = Attribute.GetValue("memberid"); | |
} | |
</script> |
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 @deObj, @prop, @de_statusCode, @de_statusMsg, @errorCode | |
var @FirstName, @LastName, @Email, @SubscriberKey | |
set @FirstName = RequestParameter("FirstName") | |
set @LastName = RequestParameter("LastName") | |
set @Email = RequestParameter("Email") | |
set @SubscriberKey = RequestParameter("SubscriberKey") |
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://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"> | |
<s:Header> | |
<a:Action s:mustUnderstand="1">Retrieve</a:Action> | |
<a:MessageID>urn:uuid:e3f7fdfe-d225-47fb-a764-ad4f465fb724</a:MessageID> | |
<a:ReplyTo> | |
<a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address> | |
</a:ReplyTo> | |
<a:To s:mustUnderstand="1">https://webservice.exacttarget.com/Service.asmx</a:To> | |
<o:Security xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" s:mustUnderstand="1"> |
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 @DEColumn1, @lookupValue | |
set @lookupValue = "whee" | |
set @DEColumn1 = Lookup("DataExtensionName", "ReturnColumn", "LookupColumn", @lookupValue) | |
]%% | |
DEColumn1 is %%=v(@DEColumn1)=%% |
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 @rows, @row, @rowCount | |
var @lookupValue | |
set @lookupValue = "whee" | |
set @rows = LookupRows("DataExtensionName","LookupColumn", @lookupValue) | |
set @rowCount = rowcount(@rows) | |
if @rowCount > 0 then |
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 @rows, @row, @rowCount, @numRowsToReturn, @lookupValue, @i | |
set @lookupValue = "whee" | |
set @numRowsToReturn = 0 /* 0 means all */ | |
set @rows = LookupOrderedRows("DataExtensionName",@numRowsToReturn,"DEColumn1 desc, DEColumn2 asc","LookupColumn", @lookupValue) | |
set @rowCount = rowcount(@rows) | |
if @rowCount > 0 then |
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 @rows | |
set @rows = LookupRows("_ListSubscribers","SubscriberKey",emailaddr) | |
]%% |
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
// Dave's AMPScript cheat sheet. | |
// AMPScript is ExactTarget (SFDC Marketing Cloud)'s server side scripting language. | |
// It's a bit of a pig, plus the docs are numerous and the examples aren't contextual. | |
// This assumes you don't need hand holding, and just need to get your head around it. | |
// It's also my reference for the snippets I use all the time (I'm a formatting stickler). | |
// These examples come from microsites I've written - adapt 'em for use elsewhere. | |
// Multi line AMPScript %%[contained within delimiters]%% gets interpreted on the server. |
OlderNewer