Email template condition and subejct max length

Hi,

Does anyone know the maximum size of an email subject template?

I want to add an if statement to block sending notifications by inserting #stop for some operations on one of our manual sources.

I don’t have a problem defining this condition. However, when I add it, I encounter an error when trying to save. What I’ve noticed is that if I reduce the length (some part of the condition), it successfully works.

Best regards.

I wonder if this is more of a syntax issue with your condition. Can you please indicate which email template you are working with and provide the subject text that works and the text that doesn’t work?

Hi @colin_mckibben,

Subject Template that work :

#set($block='false')#foreach($item in $approvalSet.items)#if($item.applicationName=='IdentityNow - roPfil emrties [source]')#if($item.name=='role')#if($item.operation=='Remove')#set($block='true')#end#end#end#end#if($block=='true')#stop#{else}Modif#end

And for example this second template does note work :

#set($block='false')#foreach($item in $approvalSet.items)#if($item.applicationName=='IdentityNow - roPfil emrties [source]')#if($item.name=='role')#if($item.operation=='Remove')#set($block='true')#end#end#end#end#if($block=='true')#stop#{else}Modification#end

The only difference is the end where i replace Modif by Modification.

And i result with this working template after several test, removal space, and some condition.

I test this condition on Pending Manual Changes - SailPoint Identity Services subject

@colin_mckibben, to day i also receive this response from our PS : Email Templates, subject max length is 250 characters.

1 Like