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
<!--Declaring Ampscript variable --> | |
%%[ | |
var @Page1,@CookieID,@Page2 | |
]%% | |
<!--Progressive Profile Logic Starts--> | |
<script runat=server> | |
Platform.Load("Core", "1.1.1"); | |
var cookie = Platform.Request.GetCookieValue("SFMCCookie"); //Get the cookie value if its present | |
Variable.SetValue("@CookieID",cookie); //Set the cookie value | |
var CheckCookie = DataExtension.Init("Progressive Profiling"); |
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"); | |
try{ | |
var jsonpost = Platform.Request.GetPostData(0); | |
var json = Platform.Function.ParseJSON(jsonpost); | |
var messageKey = json[0].eventCategoryType; | |
if (messageKey == "TransactionalSendEvents.EmailSent") { | |
var MessageType = json[0].eventCategoryType; | |
var jobId = json[0].composite.jobId; |
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"); | |
try{ | |
var jsonpost = Platform.Request.GetPostData(0); | |
var json = Platform.Function.ParseJSON(jsonpost); | |
var Message = "Call back"; | |
var insertResponse = Platform.Function.InsertData("Transactional_Event_Notification_CallBack_Verification",["Message","Body"],[Message,jsonpost]); | |
} catch (e) { | |
Write("<br>" + Stringify(e)) | |
} |
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 output = ""; | |
var i; | |
var dataRows= Platform.Function.LookupRows('Automation_Status','Flag','True'); | |
if(dataRows && dataRows.length > 0) | |
{ | |
for(i=0; i<dataRows.length; 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
<div style="text-align: center;"> | |
First Name - {{FirstName}} | |
</div> |
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
%%[ | |
/* Get the order data from data extension */ | |
Set @OrderData = [OrderData] | |
]%% | |
<br> | |
<b>Retrieve First Name:</b><br> | |
| |
<div style="text-align: left;"> | |
First Name - {{FirstName}}<br><br> | |
<b>Retrieve Product Name:</b><br> |
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
%%[ | |
/* Get the order data from data extension */ | |
Set @OrderData = [OrderData] | |
]%% | |
<br> | |
<b>Retrieve First Name:</b><br> | |
| |
<div style="text-align: left;"> | |
First Name - {{FirstName}}<br><br> | |
<b>Retrieve Product Name:</b><br> |
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
%%[ | |
/* Get the order data from data extension */ | |
Set @OrderData = [OrderData] | |
]%% | |
<br> | |
<b>Retrieve First Name:</b><br> | |
| |
<div style="text-align: left;"> | |
First Name - {{FirstName}}<br><br> | |
<b>Retrieve Product Name:</b><br> |
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 language = 'javascript' runat = 'server' > | |
Platform.Load('Core', '1'); | |
// Arrays of allowed values for both Sender Address and Sender Origin | |
// Sender Address is the from address when you send an email, make sure your expected from address is included in the list | |
// Sender Origin represents the domain originating the request | |
// The Marketing Cloud origin is in place to allow testing in Subscriber Preview, update that value to match your stack | |
var isAllowed = { | |
senderAddress: [ |
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
<!-- {{={< >}=}} --> | |
<!DOCTYPE html> | |
<html amp4email data-css-strict> | |
<head> | |
<meta charset="utf-8"> | |
<script async src="https://cdn.ampproject.org/v0.js"></script> | |
<script async custom-element="amp-form" src="https://cdn.ampproject.org/v0/amp-form-0.1.js"></script> | |
<script async custom-element="amp-list" src="https://cdn.ampproject.org/v0/amp-list-0.1.js"></script> | |
<script async custom-template="amp-mustache" src="https://cdn.ampproject.org/v0/amp-mustache-0.2.js"></script> | |
<style amp4email-boilerplate>body{visibility:hidden}</style> |