I’m trying to put some condition in OOB email template which is lifecycle state change template, However condition is not allowing the body section and It is getting disappearing immediately.
Have you tried using straight quotes (" ") instead of curly quotes (“ ”)? sometimes those get copied incorrectly.
I think I read somewhere that the limit is approximately 450,000 characters for the entire template. Don’t quote me on this one.
Hope this helps!
You will be basically putting your HTML here, it will render and get evaluated in normal page.
The behaviour of disappearing #if else conditions from template page is common, but once you trigger the email template, it should give you the email based on the evaluation of email template with the respective #if else conditions.
Also, i ma not sure if it will like you have pasted the if condition, but this is how i am using: #if($identity.endDate)...... #{else}$identity.terminationDate
Just make sure any variable you are trying to access is in the format ${variableName}. Also, I had to manually add double quotes as copying it from here and pasting in IDN was not working.
Make sure you Save the template first and then and use Test Email functionality to verify your changes.