AttributeValue()

Returns the value of an attribute. The function determines this value using data sources related to the Contact or Subscriber that the message is sent to. These sources include email subscriber profiles, data extension fields, journey entry source attributes, and MobilePush attributes.

This function is a better option than making a direct reference to the attribute because it returns null if no data is found.

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 "RewardTierPoints" attribute from the sendable data extension associated with the message.