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!
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.