This file contains hidden or 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
| <html> | |
| <body> | |
| Dear Customer,<br> | |
| Here are the details of your order:<br> | |
| %%[ var @rows, @row, @rowCount, @subKey, @counter, @orderItem | |
| set @subKey = _subscriberkey | |
| set @rows = LookupRows("Orders","CustomerId", @subKey) | |
| set @rowCount = rowcount(@rows) |
This file contains hidden or 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 @rows, @row, @rowCount, @subKey, @counter, @orderItem | |
| set @subKey = _subscriberkey | |
| set @rows = LookupRows("Orders","CustomerId", @subKey) | |
| set @rowCount = rowcount(@rows) | |
| for @counter = 1 to @rowCount do /* repeat in a loop for as many times as defined in rowCount */ | |
| set @row = row(@rows, @counter) /* get row based on counter */ | |
| set @orderItem = field(@row,"OrderItem") | |
| ]%% |
This file contains hidden or 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 @rows, @row, @rowCount, @subKey | |
| set @subKey = _subscriberkey | |
| set @rows = LookupRows("Orders","CustomerId", @subKey) | |
| set @rowCount = rowcount(@rows) |
This file contains hidden or 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
| trigger Trig_CampaignMember on CampaignMember (after insert, after update) | |
| { et4ae5.triggerUtility.automate('CampaignMember'); } |
This file contains hidden or 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(); | |
| var tsExKey = '12345'; //pass Triggered Send External Key | |
| var EmailAddress = '[email protected]'; //pass Email Address | |
| var SubscriberKey = '[email protected]'; //pass Subscriber Key | |
| var firstName = 'Zuzanna'; //pass First Name | |
| var tsDef = { | |
| TriggeredSendDefinition: { |
This file contains hidden or 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 @ts, @tsDef, @ts_extkey, @ts_email, @ts_sub, @ts_statusCode, @ts_statusMsg, @errorCode | |
| SET @ts = CreateObject("TriggeredSend") | |
| SET @tsDef = CreateObject("TriggeredSendDefinition") | |
| SET @ts_extkey = "ExternalKey" /* use the external key of the interaction for example SET @ts_extkey = "49078" */ | |
| SET @ts_email = "[email protected]" /* provide recipient's email address */ | |
| SetObjectProperty(@tsDef, "CustomerKey", @ts_extkey) | |
| SetObjectProperty(@ts, "TriggeredSendDefinition", @tsDef) | |
This file contains hidden or 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"); | |
| try{ | |
| var prox = new Script.Util.WSProxy(); | |
| var de1 = { | |
| "CustomerKey":"xxxx-xxxx-xxxx-xxxx-xxxx-xxxx", | |
| "IsSendable":"true", | |
| "SendableDataExtensionField": |
This file contains hidden or 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"); | |
| try{ | |
| var prox = new Script.Util.WSProxy(); | |
| var CustomerKey = []; //Create an array withh DE External Keys | |
| var IsSendable = "true", | |
| SendableDataExtensionField = {"Name": "email", "DataType": "EmailAddress"}, //Provide the name of the field used to establish a data relationship (SendableDataExtensionField relates to subscribers on SendableSubscriberField) | |
| SendableSubscriberField = {"Name": "Subscriber Key"}; //Use "Subscriber Key" or "Email Address" depending on whether the SUBSCRIBER_KEY business rule has been turned on. |
This file contains hidden or 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"); | |
| try{ | |
| var prox = new Script.Util.WSProxy(); | |
| var CustomerKey = "xxxxx-xxxx-xxxx-xxxx", //Insert DE External Key | |
| IsSendable = "true", | |
| SendableDataExtensionField = {"Name": "email", "DataType": "EmailAddress"}, //Provide the name of the field used to establish a data relationship (SendableDataExtensionField relates to subscribers on SendableSubscriberField) | |
| SendableSubscriberField = {"Name": "Subscriber Key"}; //Use "Subscriber Key" or "Email Address" depending on whether the SUBSCRIBER_KEY business rule has been turned on. |
This file contains hidden or 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
| <form class="smartcapture-content-wrapper fuelux" role="form" action="%%=RequestParameter('PAGEURL')=%%" method="GET"> | |
| <span> | |
| <label for="email">Email:</label> | |
| <input type="email" class="form-control" id="email" name="email" value="%%=v(@email)=%%" required=""> | |
| </span> | |
| <button class="sc-button" type="submit" name="Submit" id="Submit" value="Success">Submit</button> | |
| </form> | |
| %%[ | |
| SET @email = RequestParameter("email") |