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!
Update your Profile with your Support type to get your Support Type badge.
Expand your NetSuite knowledge by joining our Ask A Guru Live sessions. RSVP on this event now.
Don't miss out on our Question of the Week! You only have until tomorrow, September 11, 2025, 2PM ET to comment your answers and earn rewards! Click here for more details.
Uncover the power of data with the Analytics Hub —your ultimate guide to mastering NetSuite Saved Searches and Reports. Simplify the complex and unlock your organization's true potential. Dive into the Analytics Hub now and soar to new heights!
NetSuite 2025.2 Release Notes - This document summarizes the changes to NetSuite between 2025.2 and the previous release.
To help you get the most out of your 2025.2 Release Preview account, review the topics outlined in the 2025.2 Release Preview Guide.
SuiteWorld October 6 - 9, 2025: Agenda Builder is live!

Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!

Check out this thread to learn more!

Showing field text in custom portlet

edited Dec 2, 2019 5:48PM in SuiteCloud / Customization 5 comments

Hi all

I have written a custom portlet script to give me a list of opportunities, which appears to be giving me the correct results, apart from one slight issue. For the Company and Sales Rep columns in my results, I am being presented with the internal ID rather than the entity number/customer name and the sales rep name. I need the equivalent of a nlapiGetFieldText() API but for this custom portlet.

This is my current script:

 function unqtdOppPortlet(portlet, column)  {  portlet.setTitle("Unquoted Opportunities");  portlet.addColumn('trandate','date', 'Date', 'LEFT');  var col = portlet.addColumn('tranid','text', 'Number', 'LEFT');  col.setURL(nlapiResolveURL('RECORD','opportunity'));  col.addParamToURL('id','id', true);  portlet.addColumn('entity','text', 'Customer', 'LEFT');  portlet.addColumn('custbody_pqc_date','date', 'Date of Pre-quote', 'LEFT');  portlet.addColumn('expectedclosedate','date', 'Expected Close', 'LEFT');  portlet.addColumn('projectedamount','currency', 'Projected Total', 'RIGHT');  portlet.addColumn('custbody_opp_site_adress','text', 'Site Address', 'LEFT');  portlet.addColumn('salesrep','text', 'Sales Rep', 'LEFT');    var returnFilter = new Array();  returnFilter[0] = new nlobjSearchFilter('salesrep',null,'is',29918)    var returncols = new Array();  returncols[0] = new nlobjSearchColumn('trandate');  returncols[1] = new nlobjSearchColumn('tranid');  returncols[2] = new nlobjSearchColumn('entity');  returncols[3] = new nlobjSearchColumn('custbody_pqc_date');  returncols[4] = new nlobjSearchColumn('expectedclosedate');  returncols[5] = new nlobjSearchColumn('projectedamount');  returncols[6] = new nlobjSearchColumn('custbody_opp_site_adress');  returncols[7] = new nlobjSearchColumn('salesrep');    var results = nlapiSearchRecord('opportunity', null, returnFilter, returncols);  for ( var i

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!

Leaderboard

Community Whiz

Quarter 3 (Jul-Sep 2025)

This Week's Leaders

This Month's Leaders

All Time Leaders