Share all details related to your problem, including any error messages you may have received.
I need assistance with VTL and Email Templates.
I’m trying to use a variable whose value I compute in the body of an email template in the subject line. But it looks like the variables created and assigned a value in the body cannot be used in the subject. Is there any way to get the variable body part to subject?
Please check this document it has a lot of sample example of variable usage and the use of spTools for getting variable via context. Let me know if you need further help.
@ashutosh08
I am well aware about writing velocity code inside body tag of the emailtemplate. However, I am willing to know about writing a rule in subject tag as mentioned by @vishal_kejriwal1 .
I have seen the implementation in earlier version but now, with IdentityIQ version 8.1p3, 8.2+, we will only be allowed to use Velocity templates in the body of an EmailTemplate. It will not be allowed in the cc field, Subject, etc.
IIQMAG-3560
[SECURITY] IdentityIQ now restricts class loading from within Velocity templates except for email bodies