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
<!--–– Copyright © 2020 Zuzanna Jarczynska http://sfmarketing.cloud ––--> | |
%%[ | |
SET @contactId = _subscriberkey | |
IF NOT EMPTY(@contactId) THEN | |
/* fetch data from Sales Cloud to show in the form */ | |
SET @subscriberRows = RetrieveSalesforceObjects( |
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
select | |
_ContactID ContactID | |
, _DeviceID DeviceID | |
, _APID APID | |
, _Status Status | |
, _Source Source | |
, _SourceObjectId SourceObjectId | |
, _Platform Platform | |
, _PlatformVersion PlatformVersion | |
, _Alias Alias |
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"); | |
var prox = new Script.Util.WSProxy(); | |
var queryAllAccounts = true; | |
var cols = ["Client.ID","CustomerKey","ListName","ID"]; | |
var filter = { | |
Property: "ListClassification", | |
SimpleOperator: "equals", | |
Value: "PublicationList" |
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.1"); | |
var subkey = "abc123"; | |
var email = "[email protected]" | |
var prox = new Script.Util.WSProxy(); | |
// Set specific BU context if required | |
// prox.setClientId({ "ID": 7279411 }); |
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
define([ | |
'postmonger' | |
], function ( | |
Postmonger | |
) { | |
'use strict'; | |
var connection = new Postmonger.Session(); | |
var authTokens = {}; | |
var payload = {}; |