Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
cc
I am trying to write my first Portlet by embedding a youtube video. I am getting this error message on the Portlet:
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:
/** * @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 }; });
0