<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
Okta Expression Language Conditions Usable for Email Templates
Okta Classic Engine
Okta Identity Engine
Administration
Overview
Okta sends notifications to users when they reset their password, activate their account, unlock the account, and enroll or authenticate with an email factor.
Applies To
  • Email Templates
  • Okta Expression Language (EL)
  • Customization
Solution

As per the email customization Okta documentation, email templates do not support functions that return boolean values. To create a condition, a boolean value is required. Thus, conditions cannot be created with Okta Expression Language when customizing email templates.

For example:
 
${f:String.stringContains(user.login, "@xyz.com") ? f:String.substringBefore(user.login,"@xyz.com") : user.login}.

If used while saving the template, it will throw an invalid expression error.


Related References

Loading
Okta Expression Language Conditions Usable for Email Templates