How to customize CC in email template in IIQ

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.

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}"

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.

Can you share the exact error here from the logs?


Its not getting resolved with in the xml

You need to escape double quotes. Can u try below one

cc="#if($!identity.getStringAttribute(\""Position\"") != \""Executive Leadership\"") $!identity.manager.email #{end}"


Its not letting me to save the xml


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}"

Thanks you. It worked