Uncategorized

ProperCase function

A financial company wants to send a promotional email to its subscribers about their new products. The company would like to display the recipient’s first name in the email and also getting the first name properly capitalized.

In this specific use case, the AttributeValue function is used to retrieve the subscriber’s first name from a sendable data extension. The first name value then passed as an argument into the ProperCase function to return the first name with the first letter capitalised. The result is stored in a variable @firstName, which is then used in the email.

%%[
VAR @firstName
SET @firstName = AttributeValue("FirstName")
SET @firstName = ProperCase(@firstName)
]%%

Hello %%=v(@firstName)=%%,

We are excited to support you through our business grown by using our new trending products.


Best regards,
Financial Company

Leave a Reply

Your email address will not be published. Required fields are marked *