GetCustomerMetadataAttribute

The GetCustomerMetadataAttribute aсtion retrieves a specific metadata value for a specific attribute. The attribute metadata can be obtained by passing the attribute ID. You can retrieve the desired field using its name in the field parameter.

GetCustomerMetadataAttribute(
    idn: str,
    field: Literal["title", "description", "group", "is_hidden", "possible_values", "value_type"]
)

Where:

  • idn: The identifier of the attribute. For example, "customer_last_name."
  • field: The specific field you want to retrieve.

Example

{{Set(name="my_attribute", value=GetCustomerMetadataAttribute(idn="project_attributes_restaurant_brunch_instruction", field="description"))}}

The above code snippet gets the customer attribute description of "project_attributes_restaurant_brunch_instruction." If no description was set for this attribute, the result will return null.