Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
Suitelet: Dynamic File Path for Including HTML files from File Cabinet
I'm working on an external Suitelet that displays different HTML pages based on specific parameters. In order to load the html I'm using a relative path "SuiteScripts/[pathtofile]/[filename]", which works, but I have two problems:
1. I plan on bundling this to transfer to another account, which will change the potential path.
2. The HTML files use <link> tags to load other files in the cabinet (i.e. js/css) but the relative path doesn't work for these since the suitelet domain is different than the file cabinet domain. I got around this by placing the files in the Web Site Hosting Files directory and using '/c.accountid/' but this also poses a challenge for bundling.