unable to pass variable inside the function
Hi Team,
I'm trying to dynamically set the locale in the formatCurrency() function in Adobe Journey Optimizer. Here's a simplified version of what I'm doing:
{%= formatCurrency(10000, "en_AU") %}
Instead of hardcoding "en_AU", I would like to pass a profile attribute (e.g., {{countryCode}} or profile.countryCode) that represents the locale dynamically.
However, when I try to pass an attribute like this:
{%= formatCurrency(10000, profile.countryCode) %}
I receive an error.
Could you please confirm if passing a dynamic attribute for the locale parameter is supported in AJO expressions? If so, what is the correct way to structure this?
@satheeskannak @mohan_dugganab @ajodev @davidkangni @anuhya-y