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.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.
SuiteWorld | October 25–28, 2026 | Las Vegas
Registration opens June 9. Be ready when passes drop. Get the green light now - Convince your boss
Registration opens June 9. Be ready when passes drop. Get the green light now - Convince your boss
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