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:

See the gist on github.

Share
Published by
Adam Spriggs @wvpv

Recent Posts

  • sports

Giannis is the 2018-19 NBA MVP

https://www.youtube.com/watch?v=2OZZp3k_EqI I'm so happy for him and for the future of the Milwaukee Bucks. Always want more but never be…

3 weeks ago
  • food

How to dice an onion

https://youtu.be/CwRttSfnfcc Chef Jean Pierre demonstrates the proper way to dice an onion.

3 weeks ago
  • fun

Wanna box?

Wanna box for those, Sir? Nah, I hate violence. Is it cool if I just pay with my card?

2 months ago
  • fun
  • inspiration

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

https://www.youtube.com/watch?v=vC8gJ0_9o4M South Pole trekker Aleksander Gamme revisiting a stash he left for himself a month earlier. Be sure and turn…

3 months ago
  • technology & science

Chevy big block 396 rebuild

https://www.youtube.com/watch?v=z5U5Kxrv6SY Good stuff from Hagerty's #RedlineRebuild series.

3 months ago