by dev | Apr 21, 2018 | Book
Overview Marketing Cloud’s Server-Side JavaScript (SSJS) has several advantages over AMPscript. First, JavaScript is more mainstream and familiar to developers. Marketing Cloud SSJS also includes additional features that do not exist in AMPscript, like arrays,...
by dev | Apr 21, 2018 | Book
Leveraging the Toolbar Validate in Classic Content Often overlooked, the Validate button in Classic Content will provide additional details on any syntactical issues. Starting there is a good plan. In Content Builder, this syntax validation is built-in. It’s...
by dev | Apr 21, 2018 | Book
FormatNumber This function formats a string as a number. Format patterns follow the C# format types outlined in the official Microsoft documentation: Standard Numeric Format Strings Standard Date and Time Format Strings Some of these custom formats are supported:...
by dev | Apr 21, 2018 | Book
GetValue This function returns the value of the specified Subscriber attribute or AMPscript variable. Argument GetValue(1) Ordinal Type Required Description 1 String True Subscriber attribute or AMPscript variable from which to return a value NOTE: The function is...
by dev | Apr 21, 2018 | Book
Writing Variable Values If your syntax is fine and you are dealing with runtime errors, you can strip out all HTML in your email or web page leaving just your AMPscript. If that does not give you some direction, reduce your code to the least amount that works, then...
by dev | Apr 21, 2018 | Book
GUID This function returns a 36-character global unique identifier (GUID) string. Arguments GUID() This function does not accept any arguments. Example 1 GUID: %%=GUID()=%% Output...