Inserting Subtemplates into Templates
You can use the include directive to insert another template inside of your template. This is often used when you have a template that presents information you want to reuse many times. For example, you might create a template that is used as a header for all communication you send out. This might include your company logo and contact information. The include directive can reference template files by URL or file cabinet ID.
For example, to insert a template in the NetSuite file cabinet with the internal ID of 123, you could use:
<#include "123"> Note The number must be a file ID, not a template ID.
To insert a template by referencing the URL, you could use:
<#include "
http://company.com/templates/myheader.ftl"> Important If you include templates from outside of NetSuite, your email may not be generated properly if there is a problem with the URL or the hosting website. Additionally, if the hosting website does not respond to the request for the template within five seconds, the email message is generated without that template. If the hosting website is an SSL site, it must have a trusted SSL certificate.
Templates that you insert with include directives cannot themselves contain include directives.