Using VTL in an Email Template to not send based off Identity Attribute

Which IIQ version are you inquiring about?

8.4

Share all details about your problem, including any error messages you may have received.

I’m attempting to write some VTL code in an Email Template that will not send an email depending on the user it’s being sent to. I’ve done something similar in ISC, but attempting to do the same thing in IIQ has thrown me for a loop. I have some pseudocode of what I’m trying to do below.

Any suggestions would be greatly appreciated!

Pseudocode:

if (identity == JohnSmith)
{
     return; // Don't send email and do nothing!
}
else
{
    SendEmail(); // Send email as usual 
}

By the time you are inside running your velocity code, you’ve already committed to sending out an email.

If this is in a custom workflow, you could do this before or on your send email step (using a condition tag).

Could you give some more details on where you are trying to do this?

Thanks for the reply, Sunny.

I’m attempting to block a certification email from going out to a certain individual since we take care of the approval process of this individual ourselves. If this can’t be done from the template, do you know what Workflow I could potentially look into to add this logic?

Could you avoid having that user in the certification by excluding them using a rule? If you know they are an exception, then you wouldn’t even need to process them.

Unfortunately, we need all the users to show up in the certification to not have any “completeness” issues with audit.

Is there another way we could block certification emails from going to the user?

Not sure if there’s a way to do that.

Trying to come up with a plan b. To satisfy your audit, could you have a separate targeted certification for those excluded users without a notification configured? That way you could justify “completeness” done with two certification campaigns.

Yeah, I was thinking something similar to that. Specifically, schedule a certification without notifications configured and potentially run a rule or manually notify each manager (skipping the one we don’t want to be notified).

Have you heard of a rule that can utilize the “Email Certifiers” button? I believe a rule that can use that button with a check to make sure we don’t use it for the user I want to skip would be exactly what I’m looking for.