Returns the value of an attribute. The function derives this value based on the data sources related to the Contact or Subscriber that the message is sent to.

The AttributeValue() function has one parameter:

  • attribute (string): Required. The name of the attribute to return the value of.

This example returns the value of the "RewardTier" attribute from the recipient's Contact record:

If the attribute that you specify isn't found in the data source, the function returns null.