Check if you can pass this quarter variable as a argument itself to the email template and then directly use in subject . you can write this big code but then you need to alter the size of subject column in database table .
either you need to pass that value from the place wre you calling email to be sent . or if you don’t have placeholder you need to check for some workaround.
Tags doesn’t seems to be correct
Use the sample email Template to see where subject and body tag need to exist .
you can write this big code but then you need to alter the size of subject column in database table .
I think when you try to add the big subject it will not allow you to save email Template . I haven’t checked in 8+ version but in 7.3 I think size was less . You can check db table size for this column …
Create a rule & move all the logic. Call the rule from the email template by passing the arguments.
Ex:
#set( $sailpointContext=$spTools.class.forName("sailpoint.api.SailPointFactory").getMethod("getFactory", null).invoke(null, null).getCurrentContext() )
#set( $quater = $sailpointContext.getObjectByName($spTools.class.forName("sailpoint.object.Rule"), "Rule_Get_Quater") )
#set( $myarray = $sailpointContext.runRule($quater, $arguments) )
$arguments = this should be a map. In this case pass the certification object.
$myarray = result from the rule
Yet I still am facing the same error when importing to Sailpoint
PS. I tried importing without the set part of the EmailTemplate Code and there were no issues. Making me believe the issue lies somewhere in the set part of the code.
I just checked the logs, there are none since the code can’t even be imported onto Sailpoint, I believe.
How would you recommend avoiding these size constraints, in the case that is the issue? The subject name on the code is only the quarter