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"> | |
try{ | |
</script> | |
%%[ | |
Set @ORGANIZER_txt = 'SalesforceFan' | |
SET @UID_txt = "SalesforceFan_" | |
SET @DTSTAMP_txt = Concat(Format(Now(),"yyyyMMdd","Date"), "T", Format(Now(),"HHmmss","Date"), "Z") | |
SET @DTSTART_txt = Concat(Format(Now(),"yyyyMMdd","Date"), "T", Format(Now(),"HHmm","Date"), "00Z") | |
SET @DTEND_txt = Concat(Format(Now(),"yyyyMMdd","Date"), "T", Format(Now(),"HHmm","Date"), "00Z") | |
Set @LOCATION_txt = 'India' |
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 @httppost,@apiid,@apistatusCode,@apiresponse,@apitoken | |
SET @apiid = '{"client_id": "client_id","client_secret": "client_secret", "grant_type": "client_credentials","account_id": "MID"}' /* Forming up the string for getting the access token */ | |
SET @httppost = HTTPPost2("https://xyz.auth.marketingcloudapis.com/v2/token","application/json",@apiid,true,@apiresponse,@responseRows) /* Making a POST call to get access token */ | |
IF(@httppost == "200") Then /* If status is Sucess */ | |
set @rows = BuildRowsetFromString(@apiresponse,'"') /* Split the rows based on '"' string */ | |
set @rowCount = rowCount(@rows) | |
if @rowCount > 0 then | |
for @i = 1 to @rowCount do | |
var @apitoken |
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") | |
var b1 = DataExtension.Init("Test_AddSubscribers"); | |
var data = b1.Rows.Lookup(["IsSubscriber"], ["False"]); | |
if(data){ | |
for (var i = 0; i < data.length; i++){ | |
var status; | |
var EmailAddress = data[i]["EmailAddress"]; | |
if(EmailAddress && EmailAddress != ""){ | |
var results = Subscriber.Retrieve({ |
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> | |
<body> | |
<h2>Sign Up Form</h2> | |
<form action="%%=RequestParameter('PAGEURL')=%%" method="POST"> | |
<label for="fname">First name:</label><br> | |
<input type="text" id="fname" name="firstname" value=""><br><br> | |
<label for="lname">Last name:</label><br> | |
<input type="text" id="lname" name="lastname" value=""><br><br> | |
<label for="lname">Email:</label><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
[{ | |
"Product_Name": "Crimson Camelback Pack", | |
"SKU": "104176", | |
"Thumbnail_URL": "http://something.com/image2/", | |
"Product_Category": "Gear", | |
"Product_Ratings": { | |
"Last_Review_Text": "Thank you so much for sending this express...", | |
"Number_of_Ratings": "14", | |
"Average_Rating": "3.21" | |
} |
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 config = { | |
name: "Bitly_Link_Tracking", | |
cols: ["ShortURL"], | |
filter: { | |
Property: "Tracked", | |
SimpleOperator: "isNull", |
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 { | |
//authenticate to get access token | |
var authEndpoint = 'https://xxxxx.auth.marketingcloudapis.com/' //provide API endpoint | |
var payload = { | |
client_id: "xxxxx", //pass Client ID | |
client_secret: "xxxxx", //pass Client Secret | |
grant_type: "client_credentials" //pass MID | |
}; |
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> | |
<body> | |
%%[ | |
IF RequestParameter("submitted") == "submitted" Then | |
]%% | |
<script runat="server"> | |
Platform.Load("Core", "1"); | |
try { |
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> |
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-selector" src="https://cdn.ampproject.org/v0/amp-selector-0.1.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-bind" src="https://cdn.ampproject.org/v0/amp-bind-0.1.js"></script> | |
<script async custom-element="amp-list" src="https://cdn.ampproject.org/v0/amp-list-0.1.js"></script> |
NewerOlder