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 values from multi select field using search.lookupFields
How do you retrieve values from a multi select list using Suitescript 2.0? I am trying to look up the subsidiaries of an item record and the look up result length is only one, when there are multiple subsidiaries associated with it.
item_subsidiary = search.lookupFields({
type: 'item',
id: item_InternalId,
columns: ['subsidiary']
});
log.debug('Debug', 'item_subsidiary.length : '+item_subsidiary.subsidiary.length);
item_subsidiary.subsidiary.length returns '1', even when I have two subsidiaries on the item.
Also, how do i get both values?