I am trying to write my first Portlet by embedding a youtube video. I am getting this error message on the Portlet:
Code:
A User Error Has Occurred
{"type":"error.SuiteScriptModuleLoaderError","name":"MODULE_DOES_NOT_EXIST","message":"Module does not exist: /SuiteApps/YoutubePortletExample.js","stack":[]}
My portlet is pretty simple:
Code:
/**
* @NApiVersion 2.x
* @NScriptType Portlet
*/
/*
* Adapted from Online Help article.
*
*/
define(
[],
function() {
function _render(params) {
params.portlet.title = 'SuiteScript 2.0 video';
var content = '<iframe width="560" height="315" src="https://www.youtube.com/embed/I-7HzlhyXNI" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>'
params.portlet.html = content;
}
return {
render : _render
};
});
Can anyone help me troubleshoot? I'm fairly new to Netsuite and am using a temporary training account. Thank you
This is a cached copy. Click here to see the original post.