Expression Language for Email template Skip to main content
https://support.okta.com/help/answers?id=9062a000000quupqak&refurl=http%3a%2f%2fsupport.okta.com%2fhelp%2fanswers
How satisfied are you with the Okta Help Center?
Thank you for your feedback!
How satisfied are you with the Okta Help Center?
1
2
3
4
5
Very Dissatisfied
Very satisfied
Enter content less than 200 characters.
Ask Search:
Senthil PrabakaranSenthil Prabakaran 

Expression Language for Email template

I'm trying to use this expression in an Email template, but it is not being recognized.

Is this the correct way of using the ternary operator inside an email template?

${f:isMemberOfGroupName("abc") ? "800-xxx-yyyy" : "800-xxx-zzzz"}
Justin BergezJustin Bergez (Okta, Inc.)
Hi Senthil,

To use a ternary expression, you'll want to configure it to look similar to my example below:
user.groupName == abc ? '800-xxx-yyyy' : '800-xxx-zzzz'

If you have any follow-up questions or continue to have issues implementing this expression, I would suggest reaching out to Okta Support. We are available to assist 24/7/365.

Thank you,

Justin M. Bergez
Technical Support Engineer - Tier 2
Okta Global Customer Care