Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
Get a Field's ScriptID
I have a custom record set up with a custom field of type 'List/Record' and the list selected is 'Field'. So this custom field is a drop-down of NetSuite fields.
When I do nlapiGetFieldValue() on that custom field I get an internal id returned (i.e. '8332'). Is there a way to get the field's ScriptID (i.e. 'custitem...')?
Or is there a way I can use the internal id returned to get the value in the field selected? For example, if the field selected were the Display Name from an item record, when I do nlapiGetFieldValue() on the custom field on the custom record I get '-1099'. Is there a way to use that value to look up the Display Name on the item? I have tried nlapiGetFieldValue('-1099') and it simply returns null. nlapiGetFieldValue('displayname') returns the correct value.