Docs & Snippets

SSJS + JS + SQL documentation and code snippets that I find useful for developing Marketing Automation.

Server-Side JavaScript#

SSJS is an XX-century-version of JavaScript paired with proprietary libraries created by Salesforce. It is one of the programmatic tools useful to leverage Marketing Cloud to its fullest potential. I am creating this documentation to make my (and hopefully also yours) work easier.


In this part, I am gathering selected elements of modern vanilla JavaScript that I find useful for marketing technologists. Expect guides on asynchronous calls to API and backend resources, form-focused DOM manipulation and playing with data objects.


To fully leverage the Salesforce Marketing Cloud Data Extensions and Automation Studio, SQL is a must-have. Here I gathered both the language basics as well as some of the most useful snippets to copy and paste shamelessly.


I'm updating the docs ongoingly, so expect changes. You can track those by watching and starring the website's Github Repository. Additional languages might come (I'm thinking about you, GTL).

Last updated on by Mateusz Dąbrowski