Docs & Snippets
SSJS + JS + AMPScript + SQL + SFMC & MCP Config documentation and code snippets that I find useful for developing Salesforce Marketing Cloud.
Zen of SFMC
Salesforce Marketing Cloud is a complex and flexible tool. This combination is a dream-come-true set for enterprise Marketing Automation tools, but on the other hand, it enables mistakes and messy solutions. Find the right path to success through a best-practice fuelled checklist full of tool-based explanations and examples.
Read about Zen of SFMCServer-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 Snippets
Read about SSJSJavaScript
In this part, I am gathering selected elements of modern vanilla JavaScript that I find helpful 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 Snippets
- Tailor with Data
- Engage with Countdown
- Export, Import & Document Roles in Salesforce Marketing Cloud
AMPScript
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 Snippets
Read about AMPScriptSFMC SQL
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 valuable snippets to copy and paste shamelessly.
SQL Documentation
- SQL Basics
- Select
- From
- Join
- Where
- Case
- Like
- String Functions
- Date Functions
- Numeric Functions
- Conversion Functions
- Aggregate Functions
- NULL Functions
- Style Guide
SQL Snippets
Read about SFMC SQLSFMC Config
Many things in Salesforce Marketing Cloud aren't coding 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.
- System Data Views
- Mobile Connect Data Views
- MCC Integration Patterns
- Contact Deletion Process
- Enhanced Send Log
- Behavioral Triggers
- Power of Code Resources
- AppExchange Solutions
- Features On Demand
Marketing Cloud Personalization
Salesforce Marketing Cloud Personalization (Interaction Studio) is a cross-channel real-time hyper-personalisation engine in Salesforce Marketing Cloud. Behind that cool-looking description is a powerful tool that lets your company adapt every point of contact to each person. Neat!
MC Personalization Documentation
- Catalog Objects Architeture
- Open Time Email Template
- Serverside Code Basics
- Serverside Code Properties
- Serverside Code Context
MC Personalization Snippets
Read about MC PersonalizationChanges
I'm updating the docs ongoingly, so expect changes. You can track those by watching and starring the website's Github Repository.