UrlEncode

UrlEncode This function returns a string in which all non-alphanumeric characters except -, _ and . have been replaced with a percent sign (%) followed by the equivalent hex value. Spaces are encoded as plus (+) signs. The string is encoded in the same way that the...

SetStateMSCRMRecord

SetStateMSCRMRecord This function sets the state and status of the specified Microsoft Dynamics CRM entity. It does not return a value. Arguments SetStateMSCRMRecord(1,2,3,4) Ordinal Type Required Description 1 String True GUID of the record for which the state and...

WrapLongURL

WrapLongURL This function shortens URLs longer than 975 characters to mitigate broken email hyperlinks in Microsoft Outlook, where lengths of URL hyperlinks are limited to the following number of characters: Outlook 2007: 975 characters Outlook 2010: 1033 characters...

UpdateMSCRMRecords

UpdateMSCRMRecords This function updates one of more records in the specified Microsoft Dynamics CRM entity. It returns the number of records updated. Arguments UpdateMSCRMRecords(1,2,3,4) Ordinal Type Required Description 1 String True Name of the entity for records...

Math Functions

Overview In contrast to many other scripting languages that use operators like +, -,*, and \, AMPscript uses a set of functions for addition, subtraction, multiplication and division. AMPscript also includes specific math functions for performing modulo operations and...

UpsertMSCRMRecord

UpsertMSCRMRecord This function retrieves a record from Microsoft Dynamics CRM, using the name and value pairs to filter the results. The results are then sorted using the sort field and order specified. Records are updated with the name and value pairs from the...