Handlebar Helper Function: PersonalizationResult

Retrieves personalized content or data based on subscriber information and campaign context. Use this function to dynamically customize email content campaigns by accessing personalization data from the subscriber context.

ParameterTypeDescription
keystringRequired. The personalization key to retrieve. The key must be a valid identifier string that contains only alphanumeric characters and underscores and must start with a letter or underscore.

The function returns the personalized value associated with the key from the personalization data. If the key isn’t found, it returns an empty string. If the key exists but contains null, the function returns null. The function doesn’t throw exceptions.

To retrieve a personalized value, use the personalizationResult function with the key of the personalized value you want to retrieve.

You can use this function together with conditional helpers to render content based on the personalized value. This example checks if the subscriber is a premium member and renders exclusive premium content if they are.