Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
Freemarker Email Template-if logic
Hi There
I have a scriptable email template that I am using with sales order transactions.
I have the following freemarker code:
<#--FM:BEGIN--><#if transaction.item?has_content ><#--FM:END--> <#--FM:BEGIN--><#list transaction.item as itemlist ><#--FM:END--> <#--FM:BEGIN--><#if itemlist.quantitybackordered>0><#--FM:END--><br />
<br /><strong>List 1:</strong>
<#--FM:BEGIN-->${itemlist.item} </#if><#--FM:END--> <#--FM:BEGIN--></#list><#--FM:END--><br />
<#--FM:BEGIN--></#if><#--FM:END--><br />
<span style="font-size:11.0pt"><span style="font-family:"Calibri",sans-serif">.<br />
<br /><strong>List 2:</strong>
<#--FM:BEGIN--><#if transaction.item?has_content ><#--FM:END--> <#--FM:BEGIN--><#list transaction.item as itemlist ><#--FM:END--><#--FM:BEGIN--><#if itemlist.custcol_discontinued_item><#--FM:END--><br />