EndSmsConversation

EndSmsConversation This function will end an active conversation-based on a given short or long code and a Contact’s mobile number. Once a conversation ends, it will allow the Contact to send other MO messages related to the short or long code, otherwise the...

Multiply

Multiply This function returns the product of multiplying two numbers. Arguments Multiply(1,2) Ordinal Type Required Description 1 Number True Value to be multiplied 2 Number True Value to be multiplied Example %%[ var @product, @num1, @num2 set @num1 = 5 set @num2 =...

SetSmsConversationNextKeyword

SetSmsConversationNextKeyword This function will set the keyword for the next message in a conversation. It does not create a new conversation. Rather, it sets the next conversation path similar to CreateSmsConversation, but for an existing conversation. The Next...

Random

Random This function returns a random number between two numbers. Both upper and lower bound parameters are inclusive. Arguments Random(1,2) Ordinal Type Required Description 1 Number True Value of lower bound 2 Number True Value of upper bound Example %%[ var...

Sales & Service Cloud Functions

Overview Marketing Cloud includes several AMPscript functions that enable interaction with Sales and Service Cloud object records and emails. Applications include: Creating or updating a record in a standard or custom Salesforce object Dynamically retrieving and...

Subtract

Subtract This function returns the difference between two numbers. Arguments Subtract(1,2) Ordinal Type Required Description 1 Number True First value 2 Number True Second value Example %%[ var @diff, @num1, @num2 set @num1 = 42.51 set @num2 = 5 set @diff =...