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
//Insert JQuery URL into header. Below is from Google. | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> | |
//Place below code in body of page. It will open the modal by whatever ID is there when the page is ready. | |
$(document).ready(function(){ | |
if(window.location.href.indexOf("sometexthere") > -1) { | |
$("#id").modal(); | |
} | |
}); |
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
$(document).ready(function () { | |
if (window.location.href.indexOf("?lang=en") > -1) { | |
function doEnglish() { | |
$('#english').addClass('active'); | |
$('#en').addClass('active'); | |
$('#español').removeClass('active'); | |
$('#es').removeClass('active'); | |
} | |
setTimeout(doEnglish, 0); | |
} else { |
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
SELECT | |
ade.AgentSettingsID, | |
ade.AgentNumber, | |
pde.Email, | |
pde.Given_Name, | |
pde.Surname, | |
DATEDIFF(Year, pde.Date_Of_Birth, pde.Purchase_Date) AS "Age", | |
pde.Mobile AS "Mobile_Phone", | |
pde.Home AS "Home_Phone", | |
pde.MailingStreet AS "Street_Address", |
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
SELECT pde.SubKey AS SubscriberKey, pde.Email AS EmailAddress | |
FROM AgentDataExtension ade | |
INNER JOIN PrimaryDataExtension pde ON pde.Agent_Number = ade.AgentNumber | |
WHERE ade.AgentSettingsID = 2 OR pde.Email LIKE '%company name%' | |
UNION | |
SELECT SubscriberKey, EmailAddress | |
FROM _ListSubscribers | |
WHERE ListID = 000 AND EmailAddress LIKE ‘%company name%’ |
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
function () | |
{ | |
var result = ''; | |
if(typeof(Storage) !== 'undefined') | |
{ | |
if (typeof(window.sessionStorage._enterCookieName) !== 'undefined') | |
{ | |
result = window.sessionStorage._enterCookieName + ''; |
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
SELECT sde.* | |
FROM SomeDataExtension sde | |
INNER JOIN _ListSubscribers l ON sde.SubKey = l.SubscriberKey | |
WHERE l.ListID = '000' | |
AND sde.SubKey = l.SubscriberKey | |
AND sde.Email = l.EmailAddress | |
AND sde.Email NOT LIKE '%string here%' |
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 @url = concat('https://www.someurl.com?utm_source=StaticParameter1&utm_medium=StaticParameter2&utm_campaign=StaticParameter3&utm_term=',FieldName,'&utm_content=StaticParameter4')]%% | |
<a href="%%=RedirectTo(v(@url))=%%" target="_blank" style="font-size: 18px; font-family: Open Sans, Helvetica, Arial, sans-serif; color: #ffffff; text-decoration: none; border-radius: 5px; background-color: #000000; padding: 15px 30px; border: 1px solid #000000; display: block;">Click Here »</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
// Was found posted by Sasa Adzip in December 2018. Source = https://success.salesforce.com/ideaView?id=08730000000cIvUAAU | |
<script runat=server> | |
Platform.Load("core","1.1.5"); | |
var deName="INSERT_DataExtensionName"; | |
var FolderScript= DataExtension.Retrieve({Property:"Name",SimpleOperator:"equals",Value:deName}); | |
//var key="INSERT_ExternalKeyOfDataExtension"; | |
//var FolderScript= DataExtension.Retrieve({Property:"CustomerKey",SimpleOperator:"equals",Value:key}); | |
var FolderID = FolderScript[0].CategoryID; |
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
<!-- AMPscript Block --> | |
%%[ | |
var @UTMstring1 | |
set @UTMstring1 = "?utm_source=SFMC&utm_medium=email&utm_campaign" | |
var @UTMstring2 | |
set @UTMstring2 = "&utm_content=" | |
var @UTMstring3 | |
set @UTMstring3 = "&utm_subscriber=" | |
var @url1 |
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
<!-- AMPscript block above <HTML> --> | |
%%[ | |
VAR @string | |
SET @string = 'PositionA1[|]PositionA2[|]PositionA3[|]PositionA4a,PositionA4b|PositionA4c,PositionA4d[^]PositionB1[|]PositionB2[|]PositionB3[|]PositionB4a,PositionB4b|PositionB4c' | |
SET @Array = BuildRowsetFromString(@string,"[^]") | |
]%% |
OlderNewer