MARKETING CLOUD / SSJS
SSJS
Server-Side JavaScript in Marketing Cloud — what works, what blows up at scale, and the patterns we reach for in CloudPages and Code Resources.
Foundation · 1
Reference · 5
Reference
Basics — Marketing Cloud SSJS fundamentals
Where SSJS runs in Marketing Cloud, what runtime you actually have (SpiderMonkey 1.7), and the two main contexts — CloudPage rendering vs Automation Script Activity — that decide the patterns you reach for.
Reference
Platform.Function — Marketing Cloud SSJS reference
The core SSJS API namespace — Data Extension reads and writes (LookupRows, InsertData, UpdateData, UpsertData, DeleteData) plus the helpers you reach for in every script (GUID, Now, ParseJSON). What works as documented, what has silent traps, and the patterns we land on.
Reference
WSProxy — Marketing Cloud SSJS reference
The SOAP API wrapper for SSJS — when Platform.Function isn't enough. Retrieve / Create / Update / Delete with full filter support, pagination past 2500 rows, and the auth-token refresh pattern that keeps long scripts alive.
Reference
String functions — Marketing Cloud SSJS reference
The string operations available in MC SSJS — native JavaScript methods (the ES5 subset SpiderMonkey 1.7 supports) plus the Platform.Function helpers for formatting and stringification. What's safe, what's missing, and what you have to polyfill.
Reference
Date functions — Marketing Cloud SSJS reference
Date and time handling in SSJS — Now / DateAdd / DateDiff / DatePart plus the native JavaScript Date object's ES5 methods. Same UTC trap as SQL, plus the date-part string codes you have to memorize.