Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

how to get enum value internal name in javascript template

Avatar

Level 3

this has ben bugging me a lot lately. When using an enum in for instance the recipient table in a template you get the label of the enum value, but for programmatic reasons I want to access the (acually stored) internal name of the value, and not the "translation". I thougt it was some .toString() or similar to get it but I can not find any documentation or way around other that loading the whole enumeration and translating it back...

1 Reply

Avatar

Level 3

I have tried to load the corresponding field as additional personalization data in the delivery template, but it still apears with the label of the value.