Script Blocks

Script Blocks Script blocks can also be included within code blocks to whether the containing code should be interpreted. Two attributes can be included in a script block: name and type. Example 1 In the example below, the HTTPGet function will only be executed if the...

AddObjectArrayItem

AddObjectArrayItem This function adds an object to a Marketing Cloud API Object array. Arguments AddObjectArrayItem(1,2,3) Ordinal Type Required Description 1 API Object True The API Object that contains the array 2 String True The array property associated with the...

Comments

Comments Comments can be included in AMPscript blocks. They are contained within an opening /* and closing */ syntax pair and provide the ability to include a readable explanation or annotation for users. Any comments are ignored by Marketing Cloud and will not be...

Personalization Strings

Overview Most digital marketing platforms offer personalization strings, which may be referred to as merge fields, merge tags or substitution strings, depending on the platform. This support allows a string-based identifier, enclosed in a delimiter, to be included on...

CreateObject

CreateObject This function instantiates the specified Marketing Cloud API Object. NOTE: Instantiated objects do not persist after the first subsequent Invoke function call (for example, InvokeRetrieve(), InvokeUpdate(), etc.). Argument CreateObject(1) Ordinal Type...

Function Calls

Function Calls Functions are interpreted, or ‘called’ either within an AMPscript block or inline AMPscript, at the location where they appear on the page or in the message. However, functions don’t need to be contained in the same AMPscript block....