Hello all, a FreeMarker question here. I’m creati...
# suitescript
j
Hello all, a FreeMarker question here. I’m creating a system email templated for orders received and ${itemline.item.itemid} returns the itemid of the first item but not subsequent ones. I’m guessing ${itemline.item.itemid} doesn’t iterate the same way as ${itemline.description} does for this #list?
Copy code
<html><head></head><body>
<table><#list salesorder.item as itemline>
<tbody>
	<tr>
	<td><#if (itemline.options)?has_content><#assign br = "<br />"><#list (itemline.options)?split(br) as option><#assign label=option?substring(0,option?index_of(":")) value=(option?substring(option?index_of(":")+1))?trim>${label}:${value} </#list></#if>
	<div>Description:${itemline.description}</div>

	<div>SKU:${itemline.item.itemid}</div>

	<div>Quantity:${itemline.quantity}</div>
	</td>
	<td>${itemline.amount}</td>
	</#list></tr>
</tbody>
</table>
</body></html>