Updating Salesforce Objects with Server-Side JavaScript

If the custom preference center in your integrated Marketing Cloud account needs to update Salesforce object attributes, you’re probably acquainted with the UpdateSingleSalesforceObject, RetrieveSalesforceObjects and CreateSalesforceObject AMPscript functions.

Well, if you’re like me and you’d rather build your custom preference center with Server-Side JavaScript (SSJS), then you’ll need a way to use these AMPscript-only functions. Here’s my general approach for wrapping the AMPscript function in SSJS:

Wanna box?

Wanna box for those, Sir?

Nah, I hate violence. Is it cool if I just pay with my card?

I’ll have what he’s having, part 12

South Pole trekker Aleksander Gamme revisiting a stash he left for himself a month earlier. Be sure and turn on the captioning.

(via RadioLab – Bliss episode)

In case you missed the previous installments:
Part 1 – DJ
Part 2 – Penguin
Part 3 – Drummer
Part 4 – Fired up Coach
Part 5 – Dancing Grandpa
Part 6 – Dancing Grandma
Part 7 – Pablo Hevia-Koch
Part 8 – Laughing Kid
Part 9 – Dancing Dad
Part 10 – Chicken Laugh
Part 11 – Zaouli Dance