Discussions
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!
Don’t miss your chance to meet our SuiteGurus—NetSuite Support professionals and subject matter experts with extensive experience in select product areas, including OneWorld, Advanced & Basic Accounting, Supply Chain Management, Receivables & Payables, CRM, Account Administration, and the SuiteCloud Platform. Full Conference attendees can prebook exclusive 30-minute one-on-one sessions for your product questions.
Spots are limited! Register through your Agenda Builder and find SuiteGuru under Agenda Enhancements.
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.