Function Index
Complete A–Z index of SSJS functions, methods, and objects documented in this reference — global functions, Platform.Function, Core library, WSProxy, HTTP, and Platform objects.
Verification pending
Every API covered in this guide, in one searchable table. Instance-style Core and WSProxy calls use placeholders such as <WSProxyInstance> for the variable you initialized (for example from new Script.Util.WSProxy()). That name is documentation shorthand — it is not a literal prefix like proxy. that you must type. ECMAScript built-ins use the standard notation instead, so an instance method reads Array.prototype.join().
For category browsing, see Platform Functions, WSProxy, HTTP, Core Library, and ECMAScript Built-ins.
| Name | Returns | Description |
|---|---|---|
Account Verified
|
— |
Manages Marketing Cloud account settings. |
Account.Init() Verified differs
|
AccountInstance |
Initializes an Account instance bound to the specified external key. |
Account.Retrieve() Verified differs
|
object[] |
Retrieves accounts based on the specified filter criteria. |
Account.Tracking Verified
|
— |
Retrieves tracking data associated with account-level sends. |
Account.Tracking.Retrieve() Verified
|
object[] |
Returns an array of tracking data related to the accounts specified… |
<AccountInstance>.Update() Verified differs
|
string |
❌ No working runtime invocation — Updates the account with the supplied attributes. |
AccountUser Verified
|
— |
Manages user accounts within the Marketing Cloud business unit. |
AccountUser.Add() Verified differs
|
string |
❌ No working runtime invocation — Creates a new account user from the supplied properties object. |
AccountUser.Init() Verified differs
|
AccountUserInstance |
Initializes an AccountUser instance bound to the specified external… |
AccountUser.Retrieve() Verified differs
|
object[] |
Retrieves account users based on the specified filter criteria. |
<AccountUserInstance>.Activate() Verified differs
|
string |
❌ No working runtime invocation — Activates the account user. |
<AccountUserInstance>.Deactivate() Verified differs
|
string |
❌ No working runtime invocation — Deactivates the account user. |
<AccountUserInstance>.Update() Verified differs
|
string |
❌ No working runtime invocation — Updates the account user with the supplied attributes. |
Platform.Function.AddObjectArrayItem() Verified differs
|
null |
Appends an item to a SOAP API object's array property. |
AggregateError() Verified
|
object |
❌ Missing (ES2021) — AggregateError is undefined in SFMC (ES2021); new AggregateError()… |
Array.from() Verified
|
array |
❌ Missing (ES6) — Unavailable in SFMC. |
Array.isArray() Verified polyfill
|
boolean |
❌ Missing (ES5) — Not available in SFMC SSJS. Polyfill → |
Array.of() Verified polyfill
|
array |
❌ Missing (ES6) — Not available in SFMC SSJS. Polyfill → |
Array.prototype.at() Verified
|
any |
❌ Missing (ES6) — Unavailable in SFMC. |
Array.prototype.concat() Verified
|
array |
Returns a new array formed by merging this array with other arrays or… |
Array.prototype.copyWithin() Verified polyfill
|
array |
❌ Missing (ES6) — Not available in SFMC SSJS. Polyfill → |
Array.prototype.entries() Verified polyfill
|
object |
❌ Missing (ES6) — Not available in SFMC SSJS. Polyfill → |
Array.prototype.every() Verified polyfill
|
boolean |
❌ Missing (ES5) — Not available in SFMC SSJS. Polyfill → |
Array.prototype.fill() Verified polyfill
|
array |
❌ Missing (ES6) — Not available in SFMC SSJS. Polyfill → |
Array.prototype.filter() Verified polyfill
|
array |
❌ Missing (ES5) — Not available in SFMC SSJS. Polyfill → |
Array.prototype.find() Verified polyfill
|
any |
❌ Missing (ES6) — Not available in SFMC SSJS. Polyfill → |
Array.prototype.findIndex() Verified polyfill
|
number |
❌ Missing (ES6) — Not available in SFMC SSJS. Polyfill → |
Array.prototype.findLast() Verified
|
any |
❌ Missing (ES6) — Unavailable in SFMC. |
Array.prototype.flat() Verified
|
array |
❌ Missing (ES6) — Unavailable in SFMC. |
Array.prototype.flatMap() Verified
|
array |
❌ Missing (ES6) — Unavailable in SFMC. |
Array.prototype.forEach() Verified polyfill
|
undefined |
❌ Missing (ES5) — Not available in SFMC SSJS. Polyfill → |
Array.prototype.includes() Verified polyfill
|
boolean |
❌ Missing (ES6) — Not available in SFMC SSJS. Polyfill → |
Array.prototype.indexOf() Verified polyfill
|
number |
❌ Missing (ES5) — Not available in SFMC SSJS. Polyfill → |
Array.prototype.join() Verified
|
string |
Joins all array elements into a string, separated by the specified… |
Array.prototype.keys() Verified
|
object |
❌ Missing (ES6) — Unavailable in SFMC. |
Array.prototype.lastIndexOf() Verified polyfill
|
number |
❌ Missing (ES5) — Array.prototype.lastIndexOf exists in SFMC SSJS but always returns -1. Polyfill → |
Array.prototype.length Verified
|
number |
Returns the number of elements in the array. |
Array.prototype.map() Verified polyfill
|
array |
❌ Missing (ES5) — Not available in SFMC SSJS. Polyfill → |
Array.prototype.pop() Verified
|
any |
Removes and returns the last element from an array. |
Array.prototype.push() Verified
|
number |
Appends one or more elements to the end of an array and returns the… |
Array.prototype.reduce() Verified polyfill
|
any |
❌ Missing (ES5) — Not available in SFMC SSJS. Polyfill → |
Array.prototype.reduceRight() Verified polyfill
|
any |
❌ Missing (ES5) — Not available in SFMC SSJS. Polyfill → |
Array.prototype.reverse() Verified
|
array |
Reverses the elements of an array in place. |
Array.prototype.shift() Verified
|
any |
Removes and returns the first element from an array. |
Array.prototype.slice() Verified differs
|
array |
⚠️ Partial — The no-argument form arr.slice() throws in the SFMC engine. |
Array.prototype.some() Verified polyfill
|
boolean |
❌ Missing (ES5) — Not available in SFMC SSJS. Polyfill → |
Array.prototype.sort() Verified differs
|
array |
⚠️ Partial — The no-argument form arr.sort() throws in the SFMC engine. |
Array.prototype.splice() Verified polyfill
|
array |
⚠️ Partial — Only the two-argument delete form splice(start, deleteCount) works… Polyfill → |
Array.prototype.toLocaleString() Verified
|
string |
Returns a string representing the array elements, joined by a… |
Array.prototype.unshift() Verified
|
number |
Inserts one or more elements at the start of an array and returns the… |
Array.prototype.values() Verified
|
object |
❌ Missing (ES6) — Unavailable in SFMC. |
ArrayBuffer() Verified
|
object |
❌ Missing (ES2015) — ArrayBuffer is undefined in SFMC (ES6). |
AsyncFunction() Verified
|
object |
❌ Missing (ES2017) — AsyncFunction is undefined in SFMC (ES2017); async/await is… |
AsyncGenerator() Verified
|
object |
❌ Missing (ES2018) — AsyncGenerator is undefined in SFMC (ES2018); async iteration is… |
AsyncGeneratorFunction() Verified
|
object |
❌ Missing (ES2018) — AsyncGeneratorFunction is undefined in SFMC (ES2018); async generator… |
AsyncIterator() Verified
|
object |
❌ Missing (ES2018) — AsyncIterator is undefined in SFMC (ES2018); async iteration is… |
Atomics Verified
|
object |
❌ Missing (ES2017) — Atomics is undefined in SFMC (ES2017). |
Attribute.GetValue() Verified differs
|
string |
Returns the value of the specified subscriber attribute or sendable… |
Base64Decode() Verified
|
string |
Decodes a Base64 encoded string to plain text. |
Platform.Function.Base64Decode() Verified differs
|
string |
Decodes a standard Base64-encoded string. |
Base64Encode() Verified
|
string |
Encodes plain text to a Base64 encoded string. |
Platform.Function.Base64Encode() Verified differs
|
string |
Encodes any string value to standard Base64. |
BeginImpressionRegion() Verified differs
|
void |
Marks the start of a named impression tracking region within content. |
Platform.Function.BeginImpressionRegion() Verified differs
|
void |
Marks the start of a named impression tracking region within content. |
BigInt() Verified
|
any |
❌ Missing (ES2020) — BigInt is undefined in SFMC (ES2020) and the 10n literal is a syntax… |
BigInt64Array() Verified
|
object |
❌ Missing (ES2020) — BigInt64Array is undefined in SFMC (ES2020). |
BigUint64Array() Verified
|
object |
❌ Missing (ES2020) — BigUint64Array is undefined in SFMC (ES2020). |
Boolean() Verified differs
|
boolean |
⚠️ Partial — The SFMC engine treats a number as truthy only when it is greater… |
new Boolean() Verified differs
|
object |
⚠️ Partial — A boxed Boolean stringifies capitalized ("True"/"False"), a boxed… |
Boolean.prototype Verified
|
object |
Boolean.prototype exists and exposes toString, valueOf and… |
Boolean.prototype.toString() Verified differs
|
string |
Returns the string form of a boolean. |
Boolean.prototype.valueOf() Verified differs
|
boolean |
⚠️ Partial — new Boolean(false).valueOf() returns the boxed object (typeof… |
BounceEvent Verified
|
— |
Retrieves bounce event data for message sends. |
BounceEvent.Retrieve() Verified
|
object[] |
Retrieves bounce event data for message sends matching the specified… |
ClickEvent Verified
|
— |
Retrieves click tracking event data for message sends. |
ClickEvent.Retrieve() Verified
|
object[] |
Retrieves click tracking event data for message sends matching the… |
Platform.Function.ContentArea() Verified deprecated differs
|
string |
Retrieves content from a specified classic Content Area by ID. |
Platform.Function.ContentAreaByName() Verified deprecated differs
|
string |
Retrieves content from a specified classic Content Area by name. |
ContentAreaObj Verified deprecated
|
— |
Manages classic content area objects. |
ContentAreaObj.Add() Verified deprecated differs
|
ContentAreaObjInstance |
Creates a new content area from the supplied properties and returns… |
ContentAreaObj.Init() Verified deprecated
|
ContentAreaObjInstance |
Initializes a ContentAreaObj instance bound to the specified external… |
ContentAreaObj.Retrieve() Verified deprecated
|
object[] |
Returns an array of content areas matching the specified filter. |
<ContentAreaObjInstance>.Remove() Verified deprecated
|
string |
Removes the previously initialized content area. |
<ContentAreaObjInstance>.Update() Verified deprecated
|
string |
Updates the content area with the supplied attributes. |
Platform.Function.ContentBlockByID() Verified differs
|
string |
Renders a Content Builder asset by its numeric identifier. |
Platform.Function.ContentBlockByKey() Verified differs
|
string |
Renders a Content Builder asset referenced by customer key. |
Platform.Function.ContentBlockByName() Verified differs
|
string |
Renders a Content Builder asset referenced by folder path and name. |
Platform.Function.ContentImageByID() Verified
|
string |
Returns an HTML img tag for a Content Builder image identified by its… |
Platform.Function.ContentImageByKey() Verified
|
string |
Returns an HTML img tag for a Content Builder image identified by its… |
Platform.Function.CreateObject() Verified differs
|
object |
Instantiates a Marketing Cloud SOAP API object. |
DataExtension Verified
|
— |
Manages Data Extension definitions and their field schemas. |
DataExtension.Add() Verified
|
DataExtensionInstance |
Creates a new data extension from the supplied properties and returns… |
DataExtension.Fields Verified
|
— |
Accesses and manages field definitions within a Data Extension. |
DataExtension.Init() Verified
|
DataExtensionInstance |
Initializes a DataExtension instance bound to the specified data… |
DataExtension.Retrieve() Verified differs
|
object[] |
Returns an array of data extensions matching the specified filter. |
DataExtension.Rows Verified
|
— |
Manages individual rows within a Data Extension. |
<DataExtensionInstance>.Fields.Add() Verified
|
string |
Adds a field to the previously initialized data extension. |
<DataExtensionInstance>.Fields.Retrieve() Verified differs
|
object[] |
Returns an array of field definitions for the previously initialized… |
<DataExtensionInstance>.Fields.UpdateSendableField() Verified
|
string |
Updates which data extension field is used to relate the data… |
<DataExtensionInstance>.Rows.Add() Verified differs
|
number |
Adds one or more rows to the previously initialized data extension. |
<DataExtensionInstance>.Rows.Lookup() Verified differs
|
object[]|null |
Returns rows where the specified columns equal the specified values… |
<DataExtensionInstance>.Rows.Remove() Verified
|
number |
Deletes rows from the previously initialized data extension where the… |
<DataExtensionInstance>.Rows.Retrieve() Verified differs
|
object[] |
Retrieves up to 2500 rows from the previously initialized data… |
<DataExtensionInstance>.Rows.Update() Verified differs
|
number |
Updates the columns of rows where `whereFieldNames` equal… |
DataView() Verified
|
object |
❌ Missing (ES2015) — DataView is undefined in SFMC (ES6). |
Date.now() Verified differs
|
object |
⚠️ Partial — Runtime-verified: unlike the spec (which returns a Number)… |
Date.parse() Verified differs
|
number |
⚠️ Partial — Runtime-verified: unlike the spec, an unparseable or invalid string… |
Date.prototype.getDate() Verified
|
number |
Returns the day of the month (1–31) of the date according to local… |
Date.prototype.getDay() Verified
|
number |
Returns the day of the week (0 = Sunday … 6 = Saturday) according to… |
Date.prototype.getFullYear() Verified
|
number |
Returns the four-digit year of the date according to local time. |
Date.prototype.getHours() Verified
|
number |
Returns the hour (0–23) of the date according to local time. |
Date.prototype.getMilliseconds() Verified differs
|
number |
⚠️ Partial — In the SFMC engine this is frequently off by one (e.g. a date… |
Date.prototype.getMinutes() Verified
|
number |
Returns the minutes (0–59) of the date according to local time. |
Date.prototype.getMonth() Verified
|
number |
Returns the month (0 = January … 11 = December) of the date according… |
Date.prototype.getSeconds() Verified
|
number |
Returns the seconds (0–59) of the date according to local time. |
Date.prototype.getTime() Verified
|
number |
Returns the numeric timestamp (milliseconds since 1970-01-01T00:00:00… |
Date.prototype.getTimezoneOffset() Verified
|
number |
Returns the difference, in minutes, between this date evaluated in… |
Date.prototype.getUTCDate() Verified
|
number |
Returns the day of the month (1–31) of the date according to… |
Date.prototype.getUTCDay() Verified
|
number |
Returns the day of the week (0 = Sunday … 6 = Saturday) according to… |
Date.prototype.getUTCFullYear() Verified
|
number |
Returns the four-digit year of the date according to universal time… |
Date.prototype.getUTCHours() Verified
|
number |
Returns the hour (0–23) of the date according to universal time (UTC). |
Date.prototype.getUTCMilliseconds() Verified
|
number |
Returns the milliseconds (0–999) of the date according to universal… |
Date.prototype.getUTCMinutes() Verified
|
number |
Returns the minutes (0–59) of the date according to universal time… |
Date.prototype.getUTCMonth() Verified
|
number |
Returns the month (0 = January … 11 = December) of the date according… |
Date.prototype.getUTCSeconds() Verified
|
number |
Returns the seconds (0–59) of the date according to universal time… |
Date.prototype.toDateString() Verified
|
string |
Returns the date portion of the date as a human-readable string. |
Date.prototype.toISOString() Verified polyfill
|
string |
❌ Missing (ES5) — Not available in SFMC SSJS (typeof d.toISOString is undefined… Polyfill → |
Date.prototype.toJSON() Verified
|
string |
❌ Missing (ES5) — Unavailable in SFMC (it depends on the absent toISOString). |
Date.prototype.toLocaleDateString() Verified differs
|
string |
⚠️ Partial — The locale argument is ignored — output is a fixed English format… |
Date.prototype.toString() Verified
|
string |
Returns a human-readable string representing the date. |
Date.prototype.toTimeString() Verified
|
string |
Returns the time portion of the date as a human-readable string. |
Date.prototype.toUTCString() Verified
|
string |
Returns the date as a string using the UTC time zone. |
Date.prototype.valueOf() Verified
|
number |
Returns the primitive value of the date as the number of milliseconds… |
Date.UTC() Verified differs
|
number |
⚠️ Partial — Runtime-verified: with year + month (and beyond) it returns the… |
DateTime.LocalDateToSystemDate() Verified differs
|
Date |
Converts a date-time value from the local time of the account or user… |
DateTime.SystemDateToLocalDate() Verified differs
|
Date |
Converts a date-time value from Marketing Cloud system time (CST) to… |
DateTime.TimeZone Verified
|
— |
Time zone utilities for SSJS date/time conversions. |
DateTime.TimeZone.Retrieve() Verified
|
object[] |
Retrieves an array of time zones matching the specified filter… |
decodeURI() Verified differs
|
string |
⚠️ Partial — Escapes for the reserved set ; / ? |
decodeURIComponent() Verified differs
|
string |
⚠️ Partial — A literal "+" is decoded to a space, unlike the ECMAScript spec… |
Platform.Function.DeleteData() Verified differs
|
number |
Removes rows from a Data Extension matching filter criteria and… |
Platform.Function.DeleteDE() Verified differs
|
null |
Removes rows from a Data Extension matching filter criteria. |
DeliveryProfile Verified
|
— |
Manages delivery profile configurations. |
DeliveryProfile.Add() Verified differs
|
object |
Creates a new delivery profile from the supplied properties. |
DeliveryProfile.Init() Verified
|
DeliveryProfileInstance |
Initializes a DeliveryProfile instance bound to the specified… |
<DeliveryProfileInstance>.Remove() Verified
|
string |
Removes the previously initialized delivery profile. |
<DeliveryProfileInstance>.Update() Verified
|
string |
Updates the delivery profile with the supplied attributes. |
Email Verified deprecated
|
— |
Manages classic Email Studio email message definitions. |
Email.Add() Verified deprecated
|
EmailInstance |
Creates a new classic email message from the supplied properties and… |
Email.Init() Verified deprecated
|
EmailInstance |
Initializes an Email instance bound to the specified external key. |
Email.Retrieve() Verified deprecated
|
object[] |
Returns an array of classic email messages matching the specified… |
<EmailInstance>.CheckContent() Verified deprecated
|
object |
Runs content checks on the previously initialized classic email… |
<EmailInstance>.Remove() Verified deprecated
|
string |
Removes the previously initialized classic email message. |
<EmailInstance>.Update() Verified deprecated
|
string |
Updates the classic email message with the supplied attributes. |
<EmailInstance>.Validate() Verified deprecated differs
|
object |
Runs validation checks on the previously initialized classic email… |
encodeURI() Verified differs
|
string |
⚠️ Partial — Space is encoded as "+" instead of "%20", and percent-escapes use… |
encodeURIComponent() Verified differs
|
string |
⚠️ Partial — Space -> "+" and lowercase hex (e.g. "/" -> "%2f") instead of the… |
EndImpressionRegion() Verified differs
|
undefined |
Marks the end of an impression tracking region within content. |
Platform.Function.EndImpressionRegion() Verified differs
|
null |
Marks the end of an impression tracking region within content. |
Error() Verified differs
|
object |
The base Error constructor works in SSJS. |
new Error() Verified differs
|
object |
Native JavaScript Error constructor. |
ErrorUtil.ThrowWSProxyError() Verified deprecated differs
|
string |
Inspects a WSProxy result object and throws when its `Status`… |
escape() Verified
|
string |
❌ Missing (ES3) — The legacy escape() function is undefined in SFMC (calling it throws… |
eval() Verified
|
any |
Parses a string of JavaScript source and executes it as a script… |
EvalError() Verified differs
|
object |
The EvalError subtype constructor is present in SSJS. |
FilterDefinition Verified
|
— |
Manages data filter definitions. |
FilterDefinition.Add() Verified differs
|
string |
❌ No working runtime invocation — Creates a new filter definition from the supplied properties. |
FilterDefinition.Init() Verified
|
FilterDefinitionInstance |
Initializes a FilterDefinition instance bound to the specified… |
FilterDefinition.Retrieve() Verified
|
object[] |
Returns an array of filter definitions matching the specified filter. |
<FilterDefinitionInstance>.Remove() Verified differs
|
string |
❌ No working runtime invocation — Deletes the previously initialized filter definition. |
<FilterDefinitionInstance>.Update() Verified differs
|
string |
❌ No working runtime invocation — Updates the filter definition with the supplied attributes. |
FinalizationRegistry() Verified
|
object |
❌ Missing (ES2021) — FinalizationRegistry is undefined in SFMC (ES2021). |
Float16Array() Verified
|
object |
❌ Missing (ES2025) — Float16Array is undefined in SFMC (ES2025). |
Float32Array() Verified
|
object |
❌ Missing (ES2015) — Float32Array is undefined in SFMC (ES6). |
Float64Array() Verified
|
object |
❌ Missing (ES2015) — Float64Array is undefined in SFMC (ES6). |
Folder Verified
|
— |
Manages folder structures within the Marketing Cloud account. |
Folder.Add() Verified
|
string |
Creates a new folder as a child of an existing folder. |
Folder.Init() Verified
|
FolderInstance |
Initializes a Folder instance, optionally bound to the specified… |
Folder.Retrieve() Verified
|
object[] |
Returns an array of folders matching the specified filter. |
<FolderInstance>.Remove() Verified
|
string |
Removes the previously initialized folder. |
<FolderInstance>.SetID() Verified
|
void |
Binds a previously initialized Folder instance to a specific folder… |
<FolderInstance>.Update() Verified
|
string |
Updates the folder with the supplied attributes. |
Format() Verified differs
|
string |
Applies a formatting rule to a string, number, or Date. |
ForwardedEmailEvent Verified
|
— |
Retrieves forwarded email event data for message sends. |
ForwardedEmailEvent.Retrieve() Verified
|
object[] |
Retrieves forwarded email event data for message sends matching the… |
ForwardedEmailOptInEvent Verified
|
— |
Retrieves forwarded email opt-in event data for message sends. |
ForwardedEmailOptInEvent.Retrieve() Verified
|
object[] |
Retrieves forwarded email opt-in event data for message sends… |
Function.prototype.apply() Verified
|
any |
Calls the function with a given `this` value and arguments provided… |
Function.prototype.bind() Verified polyfill
|
any |
❌ Missing (ES5) — Not available in SFMC SSJS, and Function.prototype is sealed so it… Polyfill → |
Function.prototype.call() Verified
|
any |
Calls the function with a given `this` value and arguments provided… |
Function.prototype.caller Verified
|
any |
❌ Missing (ES3) — Undefined in SFMC (the deprecated caller property is not exposed). |
Function.prototype.length Verified differs
|
number |
❌ Missing (ES3) — fn.length throws "Object reference not set to an instance of an… |
Function.prototype.name Verified
|
string |
❌ Missing (ES3) — Undefined in SFMC (it does not return the function name). |
Function.prototype.toString() Verified differs
|
string |
Returns a string representing the function. |
Generator() Verified
|
object |
❌ Missing (ES2015) — Generator is undefined in SFMC (ES6); function* / yield syntax is a… |
GeneratorFunction() Verified
|
object |
❌ Missing (ES2015) — GeneratorFunction is undefined in SFMC (ES6). |
globalThis Verified
|
object |
❌ Missing (ES2020) — globalThis is undefined in SFMC (ES2020). |
GUID() Verified
|
string |
Generates a new globally unique identifier as a lowercase canonical… |
Platform.Function.GUID() Verified
|
string |
Generates a new globally unique identifier as a lowercase canonical… |
HTTP.Get() Verified
|
{ Status: number, Content: string } |
Performs an HTTP GET request and returns the response body. |
HTTP.Post() Verified
|
{ StatusCode: number, Response: string[] } |
Performs an HTTP POST request with a content type and payload. |
Platform.Function.HTTPGet() Verified differs
|
string |
Performs an HTTP GET request and returns the response body as a… |
HTTPHeader.GetValue() Verified differs
|
string|null |
Retrieves the value of the specified INBOUND HTTP request header… |
HTTPHeader.Remove() Verified differs
|
void |
Removes the specified entry from the HTTP header. |
HTTPHeader.SetValue() Verified differs
|
void |
Sets the value of the specified OUTBOUND HTTP header. |
Platform.Function.HTTPPost() Verified differs
|
number |
Performs an HTTP POST request with a content type and payload. |
<HttpRequestInstance>.clearHeaders() Verified
|
void |
Removes all custom headers previously set on the request. |
<HttpRequestInstance>.removeHeader() Verified
|
void |
Removes a specific header from the request by name. |
<HttpRequestInstance>.send() Verified
|
HttpResponseInstance |
Executes the HTTP request and returns a Script.Util.HttpResponse… |
<HttpRequestInstance>.setHeader() Verified
|
void |
Sets a request header on the Script.Util HTTP request. |
Infinity Verified
|
number |
❌ Missing (ES3) — The Infinity global is broken in SFMC: its sign is inverted in… |
Platform.Function.InsertData() Verified differs
|
number |
Adds a new row to a Data Extension and returns the number of rows… |
Platform.Function.InsertDE() Verified differs
|
null |
Adds a new row to a Data Extension. |
Int16Array() Verified
|
object |
❌ Missing (ES2015) — Int16Array is undefined in SFMC (ES6). |
Int32Array() Verified
|
object |
❌ Missing (ES2015) — Int32Array is undefined in SFMC (ES6). |
Int8Array() Verified
|
object |
❌ Missing (ES2015) — Int8Array is undefined in SFMC (ES6). |
InternalError() Verified
|
object |
❌ Missing (ES0) — InternalError is a non-standard Mozilla-only error and is undefined… |
Intl Verified
|
object |
❌ Missing (ES2015) — Intl is undefined in SFMC (ES2015); none of its formatters… |
Platform.Function.InvokeConfigure() Verified differs
|
string |
Executes a SOAP API Configure call on an API object and returns the… |
Platform.Function.InvokeCreate() Verified differs
|
string |
Executes a SOAP API Create call on an API object and returns the… |
Platform.Function.InvokeDelete() Verified differs
|
string |
Executes a SOAP API Delete call on an API object and returns the… |
Platform.Function.InvokeExecute() Verified differs
|
object[] |
Executes a SOAP API Execute call on an API object and returns an… |
Platform.Function.InvokeExtract() Verified differs
|
string |
Invokes the Extract SOAP API method on the specified object. |
Platform.Function.InvokePerform() Verified differs
|
string |
Executes a SOAP API Perform action on an API object and returns the… |
Platform.Function.InvokeRetrieve() Verified differs
|
object[]|null |
Executes a SOAP API Retrieve call, returning an array of result… |
Platform.Function.InvokeSchedule() Verified differs
|
string |
Invokes the Schedule SOAP API method on the specified object and… |
Platform.Function.InvokeUpdate() Verified differs
|
string |
Executes a SOAP API Update call on an API object and returns the… |
Platform.Function.IsCHTMLBrowser() Verified
|
boolean |
Indicates whether the passed-in user-agent value represents a CHTML… |
IsEmailAddress() Verified
|
boolean |
Checks whether a string is a valid email address format. |
Platform.Function.IsEmailAddress() Verified
|
boolean |
Checks whether a string is a valid email address format. |
isFinite() Verified differs
|
boolean |
⚠️ Partial — Unlike the spec, the SFMC engine returns true for a non-numeric… |
isNaN() Verified
|
boolean |
Returns true if the value is NaN (Not-a-Number) after applying… |
IsPhoneNumber() Verified differs
|
boolean |
Checks whether a value is a valid North American Numbering Plan… |
Platform.Function.IsPhoneNumber() Verified differs
|
boolean |
Evaluates whether a string is a valid phone number and returns a… |
Iterator() Verified
|
object |
❌ Missing (ES2015) — Iterator is undefined in SFMC (ES6). |
JSON.parse() Verified
|
any |
❌ Missing (ES5) — JSON is undefined in SFMC SSJS. |
JSON.stringify() Verified
|
string |
❌ Missing (ES5) — JSON is undefined in SFMC SSJS. |
List Verified
|
— |
Manages subscriber lists. |
List.Add() Verified
|
ListInstance |
Creates a new list from the supplied properties and returns an… |
List.Init() Verified
|
ListInstance |
Initializes a List instance bound to the specified external key. |
List.Retrieve() Verified
|
object[] |
Returns an array of lists matching the specified filter. |
List.Subscribers Verified
|
— |
Manages the subscribers belonging to a specific list. |
List.Subscribers.Tracking Verified
|
— |
Retrieves tracking data for subscribers on a specific list. |
<ListInstance>.Remove() Verified differs
|
string |
Removes the previously initialized list. |
<ListInstance>.Subscribers.Add() Verified differs
|
string |
Adds a subscriber to the previously initialized list. |
<ListInstance>.Subscribers.Retrieve() Verified
|
object[] |
Returns the subscribers belonging to the previously initialized list. |
<ListInstance>.Subscribers.Tracking.Retrieve() Verified
|
object[] |
Returns an array of tracking data for subscribers matching the filter. |
<ListInstance>.Subscribers.Unsubscribe() Verified differs
|
string |
Sets the subscriber Status on the list to Unsubscribed. |
<ListInstance>.Subscribers.Update() Verified differs
|
string |
Updates the status of the specified subscriber on the previously… |
<ListInstance>.Subscribers.Upsert() Verified differs
|
string |
Adds the subscriber if not on the list, otherwise updates the… |
Platform.Load() Verified differs
|
null |
Loads a platform library. |
Platform.Function.LocalDateToSystemDate() Verified differs
|
Date |
Converts a date-time value from the local time of the account or user… |
Platform.Function.Lookup() Verified differs
|
string|number|boolean|Date|null |
Retrieves a single field value from the first Data Extension row… |
Platform.Function.LookupOrderedRows() Verified differs
|
object[]|null |
Returns an ordered array of row objects from a Data Extension. |
Platform.Function.LookupRows() Verified differs
|
object[]|null |
Returns an array of row objects from a Data Extension matching filter… |
Map() Verified
|
object |
❌ Missing (ES2015) — Map is undefined in SFMC (ES6); new Map() throws "Unknown type: Map". |
Math.abs() Verified
|
number |
Returns the absolute value of a number. |
Math.acos() Verified
|
number |
Returns the arc cosine (in radians) of a number in the range [-1, 1]. |
Math.acosh() Verified
|
number |
❌ Missing (ES6) — Unavailable in SFMC. |
Math.asin() Verified
|
number |
Returns the arc sine (in radians) of a number in the range [-1, 1]. |
Math.asinh() Verified
|
number |
❌ Missing (ES6) — Unavailable in SFMC. |
Math.atan() Verified
|
number |
Returns the arc tangent (in radians) of a number. |
Math.atan2() Verified
|
number |
Returns the angle (in radians) from the positive x-axis to the point… |
Math.atanh() Verified
|
number |
❌ Missing (ES6) — Unavailable in SFMC. |
Math.cbrt() Verified
|
number |
❌ Missing (ES6) — Unavailable in SFMC. |
Math.ceil() Verified
|
number |
Rounds a number up to the next integer. |
Math.clz32() Verified
|
number |
❌ Missing (ES6) — Unavailable in SFMC. |
Math.cos() Verified
|
number |
Returns the cosine of an angle given in radians. |
Math.cosh() Verified
|
number |
❌ Missing (ES6) — Unavailable in SFMC. |
Math.E Verified
|
number |
Euler's number, the base of the natural logarithm (~2.71828). |
Math.exp() Verified
|
number |
Returns e raised to the power of x (e^x). |
Math.expm1() Verified
|
number |
❌ Missing (ES6) — Unavailable in SFMC. |
Math.floor() Verified
|
number |
Rounds a number down to the nearest integer. |
Math.fround() Verified
|
number |
❌ Missing (ES6) — Unavailable in SFMC. |
Math.hypot() Verified
|
number |
❌ Missing (ES6) — Unavailable in SFMC. |
Math.imul() Verified
|
number |
❌ Missing (ES6) — Unavailable in SFMC. |
Math.LN10 Verified
|
number |
The natural logarithm of 10 (~2.30259). |
Math.LN2 Verified
|
number |
The natural logarithm of 2 (~0.69315). |
Math.log() Verified
|
number |
Returns the natural logarithm (base e) of a number. |
Math.log10() Verified
|
number |
❌ Missing (ES6) — Unavailable in SFMC. |
Math.LOG10E Verified
|
number |
❌ Missing (ES3) — Undefined in SFMC. |
Math.log1p() Verified
|
number |
❌ Missing (ES6) — Unavailable in SFMC. |
Math.log2() Verified
|
number |
❌ Missing (ES6) — Unavailable in SFMC. |
Math.LOG2E Verified
|
number |
The base-2 logarithm of e (~1.44270). |
Math.max() Verified
|
number |
⚠️ Partial — The variadic form throws in the SFMC engine when passed 3+ arguments. |
Math.min() Verified
|
number |
⚠️ Partial — The variadic form throws in the SFMC engine when passed 3+ arguments. |
Math.PI Verified
|
number |
The ratio of a circle's circumference to its diameter (~3.14159). |
Math.pow() Verified
|
number |
Returns the base raised to the exponent power. |
Math.random() Verified
|
number |
Returns a pseudo-random floating-point number in [0, 1). |
Math.round() Verified
|
number |
Rounds a number to the nearest integer. |
Math.sign() Verified
|
number |
❌ Missing (ES6) — Unavailable in SFMC. |
Math.sin() Verified
|
number |
Returns the sine of an angle given in radians. |
Math.sinh() Verified
|
number |
❌ Missing (ES6) — Unavailable in SFMC. |
Math.sqrt() Verified
|
number |
Returns the square root of a number. |
Math.SQRT1_2 Verified
|
number |
The square root of 1/2 (~0.70711); equivalent to 1/Math.SQRT2. |
Math.SQRT2 Verified
|
number |
The square root of 2 (~1.41421). |
Math.tan() Verified
|
number |
Returns the tangent of an angle given in radians. |
Math.tanh() Verified
|
number |
❌ Missing (ES6) — Unavailable in SFMC. |
Math.trunc() Verified
|
number |
❌ Missing (ES6) — Unavailable in SFMC. |
Platform.Function.MD5() Verified
|
string |
Returns a lowercase 32-character hexadecimal MD5 hash for a given… |
NaN Verified
|
number |
❌ Missing (ES3) — The NaN global compares correctly (NaN === NaN is false; isNaN(NaN)… |
NotSentEvent Verified
|
— |
Retrieves not-sent event data for message sends. |
NotSentEvent.Retrieve() Verified
|
object[] |
Retrieves not-sent event data for message sends matching the… |
Now() Verified differs
|
Date |
Returns the current server date/time as a Date object (in the account… |
Platform.Function.Now() Verified differs
|
Date |
Returns the current server date/time as a Date object (in the account… |
Number.EPSILON Verified
|
number |
❌ Missing (ES6) — Undefined in SFMC. |
Number.isFinite() Verified
|
boolean |
❌ Missing (ES6) — Unavailable in SFMC. |
Number.isInteger() Verified
|
boolean |
❌ Missing (ES6) — Unavailable in SFMC. |
Number.isNaN() Verified
|
boolean |
❌ Missing (ES6) — Unavailable in SFMC. |
Number.isSafeInteger() Verified
|
boolean |
❌ Missing (ES6) — Unavailable in SFMC. |
Number.MAX_SAFE_INTEGER Verified
|
number |
❌ Missing (ES6) — Undefined in SFMC. |
Number.MAX_VALUE Verified
|
number |
The largest positive finite value representable by a Number. |
Number.MIN_SAFE_INTEGER Verified
|
number |
❌ Missing (ES6) — Undefined in SFMC. |
Number.MIN_VALUE Verified differs
|
number |
⚠️ Partial — Broken in SFMC: Number.MIN_VALUE returns -MAX_VALUE (a large negative… |
Number.NaN Verified differs
|
number |
⚠️ Partial — Stringifies as lowercase "nan" in SFMC (String(Number.NaN) ===… |
Number.NEGATIVE_INFINITY Verified differs
|
number |
⚠️ Partial — Broken in SFMC: Number.NEGATIVE_INFINITY stringifies as "infinity"… |
Number.parseFloat() Verified
|
number |
❌ Missing (ES6) — Unavailable in SFMC. |
Number.parseInt() Verified
|
number |
❌ Missing (ES6) — Unavailable in SFMC. |
Number.POSITIVE_INFINITY Verified differs
|
number |
⚠️ Partial — Broken in SFMC: Number.POSITIVE_INFINITY stringifies as "-infinity"… |
Number.prototype.toExponential() Verified differs
|
string |
Returns a string representing the number in exponential notation. |
Number.prototype.toFixed() Verified
|
string |
Returns a string representing the number in fixed-point notation with… |
Number.prototype.toLocaleString() Verified differs
|
string |
⚠️ Partial — The locale argument is ignored — (123456.789).toLocaleString("de-DE")… |
Number.prototype.toPrecision() Verified differs
|
string |
Returns a string representing the number. |
Number.prototype.toString() Verified differs
|
string |
Returns a string representing the number. |
Number.prototype.valueOf() Verified
|
number |
Returns the primitive number value of a Number object. |
Object.assign() Verified
|
object |
❌ Missing (ES6) — Unavailable in SFMC. |
Object.create() Verified
|
object |
❌ Missing (ES5) — Unavailable in SFMC. |
Object.defineProperties() Verified
|
object |
❌ Missing (ES5) — Unavailable in SFMC (only the singular Object.defineProperty works). |
Object.defineProperty() Verified
|
object |
Defines a new property on an object, or modifies an existing one… |
Object.entries() Verified
|
array |
❌ Missing (ES6) — Unavailable in SFMC. |
Object.freeze() Verified
|
object |
❌ Missing (ES5) — Unavailable in SFMC and immutability cannot be enforced; treat the… |
Object.getOwnPropertyDescriptor() Verified
|
object |
❌ Missing (ES5) — Unavailable in SFMC. |
Object.getOwnPropertyNames() Verified
|
array |
❌ Missing (ES5) — Unavailable in SFMC. |
Object.getPrototypeOf() Verified
|
object |
Returns the prototype (internal [[Prototype]]) of the specified… |
Object.isExtensible() Verified
|
boolean |
❌ Missing (ES5) — Unavailable in SFMC (preventExtensions itself is missing). |
Object.isFrozen() Verified
|
boolean |
❌ Missing (ES5) — Unavailable in SFMC (freeze itself is missing). |
Object.isSealed() Verified
|
boolean |
❌ Missing (ES5) — Unavailable in SFMC (seal itself is missing). |
Object.keys() Verified
|
array |
❌ Missing (ES5) — Unavailable in SFMC. |
Object.preventExtensions() Verified
|
object |
❌ Missing (ES5) — Unavailable in SFMC. |
Object.prototype.hasOwnProperty() Verified
|
boolean |
Returns true if the object has the specified property as its own (not… |
Object.prototype.isPrototypeOf() Verified
|
boolean |
❌ Missing (ES3) — Object.prototype.isPrototypeOf exists but HANGS the Jint engine when… |
Object.prototype.propertyIsEnumerable() Verified
|
boolean |
❌ Missing (ES3) — Object.prototype.propertyIsEnumerable exists but is broken: it… |
Object.prototype.toString() Verified
|
string |
Returns a string representation of the object. |
Object.prototype.valueOf() Verified
|
object |
Returns the primitive value of the object. |
Object.seal() Verified
|
object |
❌ Missing (ES5) — Unavailable in SFMC. |
Object.values() Verified
|
array |
❌ Missing (ES6) — Unavailable in SFMC. |
OpenEvent Verified
|
— |
Retrieves open tracking event data for message sends. |
OpenEvent.Retrieve() Verified
|
object[] |
Retrieves open tracking event data for message sends matching the… |
parseFloat() Verified differs
|
number |
⚠️ Partial — Unlike the spec, the SFMC engine returns NaN when the string has… |
parseInt() Verified differs
|
number |
⚠️ Partial — Unlike the spec, the SFMC engine returns NaN when the string has… |
Platform.Function.ParseJSON() Verified differs
|
any |
Parses a JSON-formatted string (also accepts boolean or number) and… |
Portfolio Verified deprecated
|
— |
Manages portfolio (file) items in the account. |
Portfolio.Add() Verified deprecated differs
|
string |
Creates a new portfolio (file) object from the supplied properties. |
Portfolio.Init() Verified deprecated
|
PortfolioInstance |
Initializes a Portfolio instance bound to the specified external key. |
Portfolio.Retrieve() Verified deprecated differs
|
object[] |
Returns an array of portfolio objects matching the specified filter. |
<PortfolioInstance>.Remove() Verified deprecated differs
|
string |
Removes the previously initialized portfolio object. |
<PortfolioInstance>.Update() Verified deprecated differs
|
string |
❌ No working runtime invocation — Updates the portfolio object with the supplied attributes. |
Promise() Verified
|
object |
❌ Missing (ES2015) — Promise is undefined in SFMC (ES6); new Promise() throws "Unknown… |
Proxy() Verified
|
object |
❌ Missing (ES2015) — Proxy is undefined in SFMC (ES6); new Proxy() throws "Unknown type… |
QueryDefinition Verified
|
— |
Manages SQL query activity definitions. |
QueryDefinition.Add() Verified differs
|
string |
Creates a new query definition from the supplied properties. |
QueryDefinition.Init() Verified
|
QueryDefinitionInstance |
Initializes a QueryDefinition instance bound to the specified… |
QueryDefinition.Retrieve() Verified
|
object[] |
Returns an array of query definitions matching the specified filter. |
<QueryDefinitionInstance>.Perform() Verified differs
|
string |
Executes the query definition. |
<QueryDefinitionInstance>.Remove() Verified differs
|
string |
Removes the previously initialized query definition. |
<QueryDefinitionInstance>.Update() Verified differs
|
string |
Updates the query definition with the supplied attributes. |
Platform.Function.RaiseError() Verified differs
|
void |
Raises an error with an optional scope flag. |
RangeError() Verified differs
|
object |
The RangeError subtype constructor is present in SSJS. |
Platform.Recipient.GetAttributeValue() Verified differs
|
string |
Returns the value of a subscriber attribute or sendable data… |
Redirect() Verified
|
void |
Redirects the browser to another address. |
Platform.Function.RedirectTo() Verified differs
|
string |
Specifies the target of an email link as a complete URL stored in an… |
ReferenceError() Verified differs
|
object |
The ReferenceError subtype constructor is present in SSJS. |
Reflect Verified
|
object |
❌ Missing (ES2015) — Reflect is undefined in SFMC (ES6). |
RegExp() Verified
|
RegExp |
Creates a regular expression object for pattern matching. |
instanceof RegExp Verified differs
|
boolean |
❌ Missing (ES3) — The instanceof operator against RegExp is broken in SFMC: `re… |
RegExp.prototype.exec() Verified differs
|
array |
⚠️ Partial — In the SFMC engine capture groups are broken: result[0] (the full… |
RegExp.prototype.global Verified
|
boolean |
True if the g (global) flag was specified when creating the regular… |
RegExp.prototype.ignoreCase Verified
|
boolean |
❌ Missing (ES3) — Undefined in SFMC. |
RegExp.prototype.lastIndex Verified differs
|
number |
⚠️ Partial — In the SFMC engine lastIndex does NOT advance after exec()/test()… |
RegExp.prototype.multiline Verified
|
boolean |
❌ Missing (ES3) — Undefined in SFMC. |
RegExp.prototype.source Verified
|
string |
The text of the pattern, excluding the enclosing slashes and any… |
RegExp.prototype.test() Verified
|
boolean |
Tests whether the string matches the pattern. |
Request Verified
|
— |
Core Library "Request Object Utility Functions" object for reading… |
Request.ApplicationBaseURL() Verified
|
string |
Returns the base URL of the application for the current request. |
Request.ApplicationID() Verified
|
string |
Returns the application ID associated with the current request. |
Platform.Request.Browser Verified
|
object |
Returns an object describing the client browser, parsed from the… |
Platform.Request.ClientIP Verified
|
string |
Returns the IP address of the client. |
Platform.Request.GetCookieValue() Verified differs
|
string|null |
Retrieves the value of a named cookie from the HTTP request sent by… |
Platform.Request.GetFormField() Verified differs
|
string|null |
Retrieves a named field from a submitted POST form body. |
Request.GetFormField() Verified
|
string |
Returns the value of a named form field submitted with the current… |
Platform.Request.GetPostData() Verified
|
string |
Returns the raw body of the HTTP POST request. |
Platform.Request.GetQueryStringParameter() Verified differs
|
string|null |
Retrieves the value of a URL query string parameter. |
Request.GetQueryStringParameter() Verified
|
string |
Returns the value of a named URL query string parameter for the… |
Platform.Request.GetRequestHeader() Verified
|
string|null |
Returns the value of the named HTTP request header, or null if not… |
Platform.Request.GetUserLanguages() Verified
|
string |
Returns the language preferences of the client browser as specified… |
Platform.Request.HasSSL Verified differs
|
boolean |
Returns true if the current request was made over HTTPS. |
Platform.Request.IsSSL Verified differs
|
boolean |
Returns true if the current request was made over HTTPS (alias of… |
Platform.Request.Method Verified differs
|
string |
Returns the HTTP method (GET, POST, etc.) of the current request. |
Request.Method() Verified
|
string |
Returns the HTTP method (GET, POST, etc.) of the current request. |
Request.PackageID() Verified
|
string |
Returns the package ID associated with the current request. |
Request.PagePath() Verified
|
string |
Returns the path portion of the current page request. |
Platform.Request.QueryString Verified
|
string |
Returns the full query string of the current request URL. |
Platform.Request.ReferrerURL Verified differs
|
string |
Returns the referrer URL from the HTTP Referer header. |
Platform.Request.RequestURL Verified
|
string |
Returns the full URL of the current page request. |
Request.URL() Verified
|
string |
Returns the full URL of the current page request. |
Platform.Request.UserAgent Verified differs
|
string |
Returns the user-agent string from the HTTP request. |
Platform.Response.CharacterSet Verified differs
|
clr |
Sets the character set of the HTTP response. |
Platform.Response.ContentType Verified differs
|
clr |
Sets the Content-Type of the HTTP response. |
Platform.Response.Redirect() Verified differs
|
void |
Redirects the current page to a new URL and stops script execution… |
Platform.Response.RemoveCookie() Verified differs
|
null |
Attempts to remove a browser cookie from a CloudPage response. |
Platform.Response.RemoveResponseHeader() Verified differs
|
null |
Removes a previously set HTTP response header from the response. |
Platform.Response.SetCookie() Verified differs
|
null |
Sets a cookie on the client browser response. |
Platform.Response.SetResponseHeader() Verified differs
|
null |
Sets a response header on the current page response. |
Platform.Response.Write() Verified
|
void |
Writes content to the HTTP response output. |
new Script.Util.HttpGet() Verified
|
HttpGetInstance |
Creates an HTTP GET request handler. |
new Script.Util.HttpRequest() Verified
|
HttpRequestInstance |
Creates an HTTP request handler that supports any HTTP method (GET… |
new Script.Util.WSProxy() Verified
|
WSProxyInstance |
Creates a WSProxy instance for making SOAP API calls against the… |
Send Verified deprecated
|
— |
Manages email sends. |
Send.Add() Verified deprecated
|
string |
Creates a new send to the specified email and list(s). |
Send.Definition Verified deprecated
|
— |
Manages reusable Send Definition configurations that define all… |
Send.Definition.Add() Verified deprecated differs
|
object |
Creates a new send definition. |
Send.Definition.AddWithDE() Verified deprecated differs
|
object |
Creates a new send definition that targets a sendable Data Extension. |
Send.Definition.AddWithFilterDefinition() Verified deprecated differs
|
never |
Creates a new send definition that targets the audience defined by a… |
Send.Definition.Init() Verified deprecated
|
SendDefinitionInstance |
Initializes a SendDefinition instance bound to the specified external… |
Send.Definition.Retrieve() Verified deprecated
|
object[] |
Returns an array of send definitions, optionally filtered. |
Send.Init() Verified deprecated
|
SendInstance |
Initializes a Send instance bound to the specified send ID. |
Send.Retrieve() Verified deprecated
|
object[] |
Returns an array of sends matching the specified filter. |
Send.RetrieveLists() Verified deprecated
|
object[] |
Returns information about the lists targeted by a send. |
Send.Tracking Verified
|
— |
Retrieves tracking data for a specific send. |
Send.Tracking.Clicks Verified
|
— |
Retrieves click tracking data for the initialized send. |
Send.Tracking.Retrieve() Verified
|
object[] |
Returns tracking data for sends matching the filter. |
Send.Tracking.TotalByInterval Verified
|
— |
Retrieves aggregated tracking data by interval for the initialized… |
SendClassification Verified
|
— |
Manages send classification settings. |
SendClassification.Add() Verified differs
|
object |
Creates a new send classification from the supplied properties. |
SendClassification.Init() Verified
|
SendClassificationInstance |
Initializes a SendClassification instance bound to the specified… |
SendClassification.Retrieve() Verified
|
object[] |
Returns an array of send classifications matching the specified… |
<SendClassificationInstance>.Remove() Verified
|
string |
Removes the previously initialized send classification. |
<SendClassificationInstance>.Update() Verified
|
string |
Updates the send classification with the supplied attributes. |
<SendDefinitionInstance>.Remove() Verified deprecated
|
string |
Deletes the previously initialized send definition. |
<SendDefinitionInstance>.Send() Verified deprecated differs
|
string |
Sends email messages to the lists associated with the previously… |
<SendDefinitionInstance>.TestSend() Verified deprecated differs
|
string |
❌ No working runtime invocation — Sends a test version of the previously initialized send definition. |
<SendDefinitionInstance>.Update() Verified deprecated differs
|
string |
Updates the previously initialized send definition. |
SenderProfile Verified
|
— |
Manages sender profile definitions. |
SenderProfile.Add() Verified differs
|
object |
Creates a new sender profile from the supplied properties. |
SenderProfile.Init() Verified
|
SenderProfileInstance |
Initializes a SenderProfile instance bound to the specified external… |
<SenderProfileInstance>.Remove() Verified
|
string |
Removes the previously initialized sender profile. |
<SenderProfileInstance>.Update() Verified
|
string |
Updates the sender profile with the supplied attributes. |
<SendInstance>.CancelSend() Verified deprecated differs
|
string |
Attempts to cancel the previously initialized send. |
<SendInstance>.Remove() Verified deprecated differs
|
string |
Cancels/removes the previously initialized send: returns "OK" and… |
SentEvent Verified
|
— |
Retrieves sent event data for message sends. |
SentEvent.Retrieve() Verified
|
object[] |
Retrieves sent event data for message sends matching the specified… |
Set() Verified
|
object |
❌ Missing (ES2015) — Set is undefined in SFMC (ES6); new Set() throws "Unknown type: Set". |
Platform.Function.SetObjectProperty() Verified differs
|
null |
Assigns a property value on a SOAP API object created with… |
SharedArrayBuffer() Verified
|
object |
❌ Missing (ES2017) — SharedArrayBuffer is undefined in SFMC (ES2017). |
String() Verified differs
|
string |
Native JavaScript function that converts any value to its string… |
String.prototype.charAt() Verified differs
|
string |
⚠️ Partial — Out-of-range indices are broken in the SFMC engine: instead of the… |
String.prototype.charCodeAt() Verified
|
number |
Returns the UTF-16 code unit at the specified index. |
String.prototype.codePointAt() Verified
|
number |
❌ Missing (ES6) — Unavailable in SFMC. |
String.prototype.concat() Verified
|
string |
Returns a new string formed by concatenating this string with one or… |
String.prototype.endsWith() Verified polyfill
|
boolean |
❌ Missing (ES6) — Not available in SFMC SSJS. Polyfill → |
String.prototype.includes() Verified
|
boolean |
❌ Missing (ES6) — Unavailable in SFMC. |
String.prototype.indexOf() Verified
|
number |
Returns the index of the first occurrence of a substring, or -1 if… |
String.prototype.lastIndexOf() Verified
|
number |
Returns the index of the last occurrence of a substring, or -1 if not… |
String.prototype.length Verified
|
number |
Returns the number of characters in the string. |
String.prototype.localeCompare() Verified
|
number |
Compares this string with another and returns a negative number if it… |
String.prototype.match() Verified differs
|
array |
Matches a string against a regular expression and returns the matches… |
String.prototype.padEnd() Verified
|
string |
❌ Missing (ES6) — Unavailable in SFMC. |
String.prototype.padStart() Verified
|
string |
❌ Missing (ES6) — Unavailable in SFMC. |
String.prototype.repeat() Verified
|
string |
❌ Missing (ES6) — Unavailable in SFMC. |
String.prototype.replace() Verified
|
string |
Returns a new string with matches replaced by a replacement string or… |
String.prototype.search() Verified differs
|
number |
⚠️ Partial — Unreliable in the SFMC engine: a no-match returns 0 instead of the… |
String.prototype.slice() Verified
|
string |
Extracts a section of a string and returns it as a new string. |
String.prototype.split() Verified differs
|
array |
⚠️ Partial — The empty-separator form str.split("") does NOT split into characters… |
String.prototype.startsWith() Verified polyfill
|
boolean |
❌ Missing (ES6) — Not available in SFMC SSJS. Polyfill → |
String.prototype.substr() Verified polyfill
|
string |
❌ Missing (ES3) — Not available in SFMC SSJS (calling it throws). Polyfill → |
String.prototype.substring() Verified
|
string |
Returns the characters between two indices of a string. |
String.prototype.toLocaleLowerCase() Verified differs
|
string |
⚠️ Partial — The locale argument is ignored — it behaves exactly like… |
String.prototype.toLocaleUpperCase() Verified differs
|
string |
⚠️ Partial — The locale argument is ignored — it behaves exactly like… |
String.prototype.toLowerCase() Verified
|
string |
Returns the string converted to lowercase. |
String.prototype.toUpperCase() Verified
|
string |
Returns the string converted to uppercase. |
String.prototype.trim() Verified polyfill
|
string |
❌ Missing (ES5) — Not available in SFMC SSJS. Polyfill → |
String.prototype.trimEnd() Verified
|
string |
❌ Missing (ES6) — Unavailable in SFMC. |
String.prototype.trimStart() Verified
|
string |
❌ Missing (ES6) — Unavailable in SFMC. |
Platform.Function.Stringify() Verified
|
string |
Converts a JavaScript object into its JSON string representation. |
Stringify() Verified
|
string |
Serializes a value to a JSON string. |
Subscriber Verified
|
— |
Manages subscriber records in the account. |
Subscriber.Add() Verified
|
string |
Creates a new subscriber from the supplied properties. |
Subscriber.Attributes Verified
|
— |
Accesses attributes belonging to a specific subscriber. |
Subscriber.Init() Verified
|
SubscriberInstance |
Initializes a Subscriber instance bound to the specified subscriber… |
Subscriber.Lists Verified
|
— |
Lists the subscriber lists a specific subscriber belongs to. |
Subscriber.Retrieve() Verified
|
object[] |
Returns an array of subscribers matching the specified filter. |
<SubscriberInstance>.Attributes.Retrieve() Verified
|
object[] |
Returns an array of attributes associated with the previously… |
<SubscriberInstance>.Lists.Retrieve() Verified
|
object[] |
Returns the lists the previously initialized subscriber is a member… |
<SubscriberInstance>.Remove() Verified differs
|
string |
Deletes the previously initialized subscriber. |
<SubscriberInstance>.Statistics() Verified
|
object |
Retrieves statistical data for the initialized subscriber (sends… |
<SubscriberInstance>.Unsubscribe() Verified
|
string |
Sets the previously initialized subscriber's status to… |
<SubscriberInstance>.Update() Verified
|
string |
Updates the previously initialized subscriber with the supplied… |
<SubscriberInstance>.Upsert() Verified differs
|
string |
Creates a new subscriber, or updates the initialized one matched by… |
SuppressedError() Verified
|
object |
❌ Missing (ES2026) — SuppressedError is undefined in SFMC (ES2026); it does not exist in… |
SurveyEvent Verified
|
— |
Retrieves survey response event data for message sends. |
SurveyEvent.Retrieve() Verified
|
object[] |
Retrieves survey response event data for message sends matching the… |
Symbol() Verified
|
any |
❌ Missing (ES2015) — Symbol is undefined in SFMC (ES6). |
SyntaxError() Verified differs
|
object |
The SyntaxError subtype constructor is present in SSJS. |
Platform.Function.SystemDateToLocalDate() Verified differs
|
Date |
Converts a date-time value from Marketing Cloud system time (CST… |
Template Verified deprecated
|
— |
Manages email template definitions. |
Template.Add() Verified deprecated
|
string |
Creates a new template from the supplied properties. |
Template.Init() Verified deprecated
|
TemplateInstance |
Initializes a Template instance bound to the specified external key. |
Template.Retrieve() Verified deprecated
|
object[] |
Returns an array of templates matching the specified filter. |
<TemplateInstance>.Update() Verified deprecated
|
string |
Updates the template with the supplied attributes. |
Platform.Function.TreatAsContent() Verified
|
string |
Processes a string as AMPscript/HTML on the SFMC server and returns… |
TriggeredSend Verified
|
— |
Manages triggered send definitions and fires individual sends. |
TriggeredSend.Add() Verified differs
|
TriggeredSendInstance |
❌ No working runtime invocation — Creates a new triggered send definition from the supplied properties… |
TriggeredSend.Init() Verified
|
TriggeredSendInstance |
Initializes a TriggeredSend instance bound to the specified external… |
TriggeredSend.Retrieve() Verified
|
object[] |
Returns an array of triggered send definitions matching the specified… |
TriggeredSend.Tracking Verified
|
— |
Retrieves tracking data for a specific triggered send. |
TriggeredSend.Tracking.Clicks Verified
|
— |
Retrieves click tracking data for a specific triggered send. |
TriggeredSend.Tracking.TotalByInterval Verified
|
— |
Returns aggregated tracking data for a triggered send by type and… |
<TriggeredSendInstance>.Pause() Verified differs
|
string |
Pauses an active triggered send definition. |
<TriggeredSendInstance>.Publish() Verified differs
|
string |
Publishes a triggered send definition, making it active and ready to… |
<TriggeredSendInstance>.Send() Verified differs
|
string |
Sends an email using the previously initialized triggered send… |
<TriggeredSendInstance>.Start() Verified differs
|
string |
Starts (reactivates) a paused triggered send definition. |
<TriggeredSendInstance>.Tracking.Clicks.Retrieve() Verified
|
object[] |
Returns click tracking information for the previously initialized… |
<TriggeredSendInstance>.Tracking.Retrieve() Verified
|
object[] |
Returns tracking data for the previously initialized triggered send… |
<TriggeredSendInstance>.Tracking.TotalByInterval.Retrieve() Verified
|
object[] |
Returns aggregated tracking data for the previously initialized… |
<TriggeredSendInstance>.Update() Verified differs
|
string |
Updates the previously initialized triggered send definition. |
TypeError() Verified differs
|
object |
The TypeError subtype constructor is present in SSJS. |
Uint16Array() Verified
|
object |
❌ Missing (ES2015) — Uint16Array is undefined in SFMC (ES6). |
Uint32Array() Verified
|
object |
❌ Missing (ES2015) — Uint32Array is undefined in SFMC (ES6). |
Uint8Array() Verified
|
object |
❌ Missing (ES2015) — Uint8Array is undefined in SFMC (ES6). |
Uint8ClampedArray() Verified
|
object |
❌ Missing (ES2015) — Uint8ClampedArray is undefined in SFMC (ES6). |
undefined Verified
|
undefined |
The global undefined value is available in SSJS. |
unescape() Verified
|
string |
❌ Missing (ES3) — The legacy unescape() function is undefined in SFMC (calling it… |
UnsubEvent Verified
|
— |
Retrieves unsubscribe event data for message sends. |
UnsubEvent.Retrieve() Verified
|
object[] |
Retrieves unsubscribe event data for message sends matching the… |
Platform.Function.UpdateData() Verified differs
|
number |
Modifies existing rows in a Data Extension matching filter criteria… |
Platform.Function.UpdateDE() Verified differs
|
null |
Modifies existing rows in a Data Extension matching filter criteria… |
Platform.Function.UpsertData() Verified differs
|
number |
Inserts a new row or updates an existing one in a Data Extension and… |
Platform.Function.UpsertDE() Verified differs
|
null |
Inserts one row when no filter match exists or updates every matching… |
URIError() Verified differs
|
object |
The URIError subtype constructor is present in SSJS. |
Platform.Function.UrlEncode() Verified differs
|
string |
Percent-encodes only the query string after the first question mark… |
Platform.Variable.GetValue() Verified differs
|
string|number|boolean|null |
Retrieves the value of an AMPscript variable from the SSJS context. |
Platform.Variable.SetValue() Verified differs
|
null |
Assigns a value to an AMPscript variable from the SSJS context. |
WeakMap() Verified
|
object |
❌ Missing (ES2015) — WeakMap is undefined in SFMC (ES6); new WeakMap() throws "Unknown… |
WeakRef() Verified
|
object |
❌ Missing (ES2021) — WeakRef is undefined in SFMC (ES2021). |
WeakSet() Verified
|
object |
❌ Missing (ES2015) — WeakSet is undefined in SFMC (ES6); new WeakSet() throws "Unknown… |
Write() Verified
|
void |
Writes text to the HTTP response output. |
<WSProxyInstance>.createBatch() Verified
|
WSProxyResult |
Creates multiple Marketing Cloud objects in a single SOAP API call. |
<WSProxyInstance>.createItem() Verified
|
WSProxyResult |
Creates a new Marketing Cloud object via the SOAP API. |
<WSProxyInstance>.deleteBatch() Verified
|
WSProxyResult |
Deletes multiple Marketing Cloud objects in a single SOAP API call. |
<WSProxyInstance>.deleteItem() Verified
|
WSProxyResult |
Deletes a Marketing Cloud object via the SOAP API. |
<WSProxyInstance>.describe() Verified differs
|
WSProxyResult |
Returns structural metadata for one or more SOAP API object types… |
<WSProxyInstance>.execute() Verified
|
WSProxyResult |
Runs a SOAP Execute request (e.g. LogUnsubEvent), passing an array of… |
<WSProxyInstance>.getNextBatch() Verified
|
WSProxyResult |
Retrieves the next page of results from a previous retrieve call that… |
<WSProxyInstance>.performBatch() Verified differs
|
WSProxyResult |
Executes a perform action on multiple Marketing Cloud objects in a… |
<WSProxyInstance>.performItem() Verified differs
|
WSProxyResult |
Executes a perform action on a single Marketing Cloud object. |
<WSProxyInstance>.resetClientIds() Verified differs
|
null |
Clears all client IDs set on the WSProxy instance, reverting to the… |
<WSProxyInstance>.retrieve() Verified
|
WSProxyResult |
Retrieves Marketing Cloud objects matching an optional filter via the… |
<WSProxyInstance>.setClientId() Verified differs
|
null |
Sets a ClientId (impersonation) context on the WSProxy instance so… |
<WSProxyInstance>.updateBatch() Verified
|
WSProxyResult |
Updates multiple Marketing Cloud objects in a single SOAP API call. |
<WSProxyInstance>.updateItem() Verified
|
WSProxyResult |
Updates a single existing Marketing Cloud object via the SOAP API. |