Scenario: While creating Item fulfilment email template, if we want to take data from the sales order record, such as order date etc.
Use the following code.
<#assign salesOrder = record.createdfrom>
<#if salesOrder?has_content>
<p>Sales Order Date: ${salesOrder.trandate}</p>
</#if>