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" language="JavaScript"> | |
Platform.Load("core","1.1.2"); | |
try { | |
var DE_CustomerKey = Request.GetQueryStringParameter("de_key"); | |
var DE = DataExtension.Init(DE_CustomerKey); | |
var DEName = DataExtension.Retrieve({Property:"CustomerKey",SimpleOperator:"equals",Value:DE_CustomerKey})[0].Name; | |
var DEFields = DE.Fields.Retrieve(); | |
var DEFieldsList = []; | |
for (var i = 0; i < DEFields.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
%%[ | |
/* Replace with your list ID */ | |
SET @ListID = "<YOUR_ID>" | |
SET @SubscriberKey = "<Subscriber_Key>" | |
SET @rr = CreateObject("RetrieveRequest") | |
SetObjectProperty(@rr,"ObjectType","ListSubscriber") | |
AddObjectArrayItem(@rr,"Properties","SubscriberKey") | |
AddObjectArrayItem(@rr,"Properties","ListID") | |
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"); | |
var prox = new Script.Util.WSProxy(); | |
try { | |
var DE = "DataExtensionObject[MyDataExtension]", // Replace 'MyDataExtension' with your Data Extension Name | |
options = {SaveOptions: [{'PropertyName': '*', SaveAction: 'UpdateAdd'}]}, | |
cols = ["EmailAddress", "SubscriberKey"], // Replace the field names matching your Data Extension | |
moreData = true, | |
reqID = null, | |
numItems = 0; |
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 lang="en" xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=UTF-8" /> | |
</head> | |
<body> | |
<form id="web2leadForm" action="https://webto.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8" method="POST"> <!-- Update with the Salesforce-defined value for the action attribute --> | |
<input type="hidden" name="oid" id="oid" value="" /> <!-- Enter Org ID in the value --> | |
<input type="hidden" name="retURL" id="retURL" value="http://example.com" /> <!-- Update the return URL value --> |
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> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0" /> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<meta charset="utf-8" /> | |
<meta http-equiv="x-ua-compatible" content="ie=edge" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
OlderNewer