Discussions
SuiteWorld is the largest annual gathering of the NetSuite community! It will be held in Las Vegas on October 6-9, 2025. Our customers and partners look forward to SuiteWorld every year as a place to hear the latest from NetSuite, get hands-on learning, and connect with each other. Register now!
We apologize for any inconvenience this may cause and appreciate your understanding.
SuiteScript 2.1 Get Text from Dropdown list selection
This seems like it should be a very basic operation, but I've been struggling for a few hours now and I can't find any examples anywhere.
The API says to use the N/record or N/currentRecord/getText() function and a few other websites claim that works too, but this function only returns an error for me.
The situation is I am adding a Customer record to NetSuite and then my SuiteScript is sending information from that record via a web service request to another system. I need to send the text values, not the internal ids.
I can use currentRecord.getValue({fieldId:'salesrep'}); and it will return the internal id of the list value, but I cannot seem to find out how to get the actual text value associated with that selection.