- Email Templates
- Okta Expression Language (EL)
- Customization
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.
