umacsaa
(Umamaheswari Veluchamy)
April 29, 2025, 3:27pm
1
Which IIQ version are you inquiring about?
8.3
Share all details about your problem, including any error messages you may have received.
Trying to customize the CC receivers. Basically not to send an email to Executive leadership team when the access is getting revoked. Trying to customize the remediation notification.
vedeepak
(Deepak Vema)
April 29, 2025, 3:45pm
2
You can use below code as reference, and remediation emailtemplate has “Identity” as an input argument
cc="#if($!identity.getStringAttribute("Position") != "Executive Leadership") $!identity.manager.email #{end}"
umacsaa
(Umamaheswari Veluchamy)
April 30, 2025, 1:58pm
3
It seems having issues. " ends with in get method. so its not resolving and showing as error
To further clarify @vedeepak ’s reply, fields like cc, to, subject were restricted on 8.1p3.
IIQMAG-3560 [SECURITY] IdentityIQ now restricts class loading from within Velocity templates except for email bodies
Though this doesn’t specifically reference conditional, to be safe, put the logic into a variable in your Workflow and pass it into the EmailTemplate.
If this is still not working, please provide the Workflow, EmailTemplate and specific error message.
vedeepak
(Deepak Vema)
April 30, 2025, 3:10pm
5
Can you share the exact error here from the logs?
umacsaa
(Umamaheswari Veluchamy)
April 30, 2025, 3:55pm
6
Its not getting resolved with in the xml
vedeepak
(Deepak Vema)
April 30, 2025, 4:02pm
7
You need to escape double quotes. Can u try below one
cc="#if($!identity.getStringAttribute(\""Position\"") != \""Executive Leadership\"") $!identity.manager.email #{end}"
umacsaa
(Umamaheswari Veluchamy)
April 30, 2025, 7:27pm
8
Deepak Vema:
#{end}
Its not letting me to save the xml
umacsaa
(Umamaheswari Veluchamy)
April 30, 2025, 7:28pm
9
Its not letting me to save the xml
Hi @umacsaa ,
Can you try this
cc="#if($!identity.getStringAttribute("Position") != "Executive Leadership") $!identity.manager.email #{end}"