Reputation: 3540
I'm trying to use Freemarker's include
directive in a template, but no matter how I try to give it the file cabinet path all I get is an UNEXPECTED_ERROR. Does this directive just not work in NetSuite?
Upvotes: 0
Views: 973
Reputation: 3540
It does work, but not with file cabinet paths. There are two options:
<#include "563">
(Note that the file's extension must be .txt
or .ftl
; if NetSuite can't tell that it's a Freemarker file it will refuse to include it.)<#include "https://system.na0.netsuite.com/core/media/media.nl?id=123&c=12345678&h=1935965101a52f6bf76d&_xt=.ftl">
This will also apparently work with any other URL that serves Freemarker templates, though I haven't tried it.Upvotes: 3