Skip to main content

Docs & Snippets

SSJS + JS + AMPScript + SQL + SFMC Config documentation and code snippets that I find useful for developing Salesforce Marketing Cloud.

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.

SSJS Documentation#

SSJS Use Cases#

SSJS Snippets#

Read about SSJS


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.

JS Documentation#

JS Use Cases#

Read about JavaScript


AMPScript is a proprietary scripting language in Salesforce Marketing Cloud along with SSJS. Out of the two, it is simpler and more performant, but too limited for complex solutions. Good starting point for marketers without development experience. Best option for scripting in messaging.

AMPScript Documentation#

AMPScript Use Cases#

AMPScript Snippets#

Read about AMPScript


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

SQL Documentation#

SQL Snippets#

Read about SFMC SQL

SFMC Config#

There are many things in Salesforce Marketing Cloud that aren't code but have a massive impact on the code. Permissions. System Data Views. Configuration options. Here I focus on the most important ones that are crucial for Marketing Cloud developers.

Read about SFMC Config


I'm updating the docs ongoingly, so expect changes. You can track those by watching and starring the website's Github Repository.