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
// Media Queries in Sass 3.2 | |
// | |
// These mixins make media queries a breeze with Sass. | |
// The media queries from mobile up until desktop all | |
// trigger at different points along the way | |
// | |
// And important point to remember is that and width | |
// over the portrait width is considered to be part of the | |
// landscape width. This allows us to capture widths of devices | |
// that might not fit the dimensions exactly. This means the break |
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 runat="server"> | |
Platform.Load("core","1.1.1"); | |
try { | |
var de = DataExtension.Init('DE Name goes here'); | |
var data = { | |
id: Request.GetFormField("id"), | |
FirstName: Request.GetFormField("firstname"), | |
Email: Request.GetFormField("email") | |
} |
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 runat="server"> | |
var skey = "abc123"; | |
var prox = new Script.Util.WSProxy(); | |
// query all BUs | |
var queryAllAccounts = true; | |
// set the attributes to be retrieved | |
// note Client.ID and not ClientID | |
var cols = ["Status","Client.ID"]; |
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 runat="server"> | |
Platform.Load("core","1.1.1"); | |
var listid = 1234; | |
var jobid = 567; | |
var batchid = 1; | |
var mids = { | |
BU1: 123456, | |
BU2: 123457, |
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 runat="server"> | |
Platform.Load("core","1.1.1"); | |
var prox = new Script.Util.WSProxy(); | |
// Need to retrieve the ObjectID for the Automation, which isn't available via the SFMC interface. | |
var cols = ["Name", "ProgramID", "IsActive"]; | |
var filter = { | |
Property: "Name", | |
SimpleOperator: "equals", |
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 runat="server"> | |
var prox = new Script.Util.WSProxy(); | |
var tsdKey = '123'; | |
var EmailAddress = '[email protected]'; | |
var tsd = { | |
TriggeredSendDefinition: { | |
CustomerKey: tsdKey |
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 runat="server"> | |
Platform.Load("core","1.1.1"); | |
/* | |
Example that handles JSON data POSTed to this page. | |
e.g '{"firstname":"Joe","lastname":"Bloggs"}' | |
*/ | |
var jsonpost, jsondata; |
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 runat="server"> | |
Platform.Load("core","1.1.1"); | |
// Example of HTTP GET/POST to SFMC REST API to retrieve HTML of an email | |
try { | |
var authBaseUrl = 'https://abcd.auth.marketingcloudapis.com'; | |
var authEndPoint = '/v1/requestToken'; | |
var restBaseUrl = 'https://abcd.rest.marketingcloudapis.com'; | |
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 runat="server"> | |
Platform.Load("core","1.1.1"); | |
var subkey = "abc123"; | |
var email = "[email protected]" | |
var prox = new Script.Util.WSProxy(); | |
// Set specific BU context if required | |
// prox.setClientId({ "ID": 7279411 }); |
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 runat="server"> | |
Platform.Load("core","1.1.5"); | |
var id1 = "[email protected]"; | |
var id2 = "foobar"; | |
var id3 = "0036F00001zNm0BQAS"; | |
var lookup5bin = { | |
'00000':'A', '01000':'I', '10000':'Q', '11000':'Y', |
OlderNewer