Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
Email Templates: #IF statements ignored when using TO BE E-MAILED checkbox
I am seeing an issue with using an #IF statement in email templates. When we use the TO BE E-MAILED checkbox on a transaction to trigger the system to send an email using the linked email template, the entire #IF statement, including the #ELSE, is ignored. This is causing customers to receive emails with incomplete/confusing content. If we manually (via Communication > Email) send email/template from the same transaction, the #IF statement works as intended. We use a mass update to check this box on transactions daily to send transactional emails.
I did try adding the FreeMarker markup with the ADD FREEMARKER button in the Email Template text editor, wrapping my #IF statement in this. I did not see a result change.