StringToDate

StringToDate This function parses the specified date string and returns a .NET DateTime object. Arguments StringToDate(1,2) Ordinal Type Required Description 1 String True Date string to parse 2 String False Optional .NET character-encoding type to utilize in...

RequestParameter

RequestParameter This function is similar to QueryParameter, but in addition to retrieving a value from a URL query string, it can also be used to retrieve form field values. Argument RequestParameter(1) Ordinal Type Required Description 1 String True URL parameter...

StringToHex

StringToHex This function converts the specified string into its hex equivalent. Arguments StringToHex(1,2) Ordinal Type Required Description 1 String True String to convert 2 String False Optional .NET character-encoding type to utilize in conversion. Valid values...

Social Functions

Overview The AMPscript social functions are used for interacting with the Social Sharing features in Marketing Cloud.

Substring

Substring This function returns a portion of the specified string starting at a certain character position and no longer than the specified length. If the specified character position is more than the length of the specified string, the function returns an empty...

GetPublishedSocialContent

GetPublishedSocialContent This function returns previous Social Content specified by the Region ID. Argument GetPublishedSocialContent(1) Ordinal Type Required Description 1 Number True Region ID of the Social Content Area to return NOTE: This function is not...