Skip to content

Instantly share code, notes, and snippets.

View rodrigofreitasit's full-sized avatar

Rodrigo Freitas rodrigofreitasit

View GitHub Profile
@rodrigofreitasit
rodrigofreitasit / ssjs_wsproxy_updatePublist.js
Created May 14, 2021 19:15 — forked from jdeblank/ssjs_wsproxy_updatePublist.js
Use SSJS and WSProxy to add/update a subscriber status in Publication List within Salesforce Marketing Cloud
<script runat="server">
Platform.Load("core","1.1.1");
var subkey = "abc123";
var email = "foo@bar.com"
var prox = new Script.Util.WSProxy();
// Set specific BU context if required
// prox.setClientId({ "ID": 7279411 });