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.
Update: Narrative Insights has been restored and is now available.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
In-Line HTML Portlet Loading Record
Sorry to ask what is most likely a very simple question. I'm trying to understand how I can load a record with an in-line html portlet (customer dashboard) using SuiteScript 2.0.
In SuiteScript 1.0 I would simply define my function and have NetSuite pass the entityID in my script deployment. So for example:
function LoadPortlet(portlet, columns, entityid)
From there, I could use nlapiLoadRecord to pull the customer record using the entityID and then begin pulling the field values accordingly. I cannot seem to find any clear explanation on how to pull this for an in-line html portlet using SuiteScript 2.0. I saw the modules N/record and N/currentRecord but they don't seem to work in a portlet type script.
0