SetCustomerMetadataAttribute
The SetCustomerMetadataAttribute aсtion sets a specific metadata value for a specific attribute. The attribute metadata can be set by providing the attribute's ID, field name, and value.
SetCustomerMetadataAttribute(
idn: str,
field: Literal["title", "description", "group", "is_hidden", "possible_values", "value_type"],
value: Union[str, bool, List[Any]]
)
Where:
- idn: The identifier of the attribute. For example, "customer_last_name."
- field: The specific field you want to set.
- value: Any value you want to set as the metadata of the attribute.
Example
{{Set(name="my_attribute", value=SetCustomerMetadataAttribute(idn="project_attributes_restaurant_brunch_instruction", field="description", value="This is an attribute meta description."))}}
The above code snippet sets the customer attribute description of "project_attributes_restaurant_brunch_instruction."
Updated about 11 hours ago