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.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
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