Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Getting Custom Field Values
I am doing a search for all inventory items and I get everything back including all the custom fields. I can find the values for the StringCustomFieldRef, BooleanCustomFieldRef, LongCustomFieldRef, and DoubleCustomFieldRef custom fields. I am not able to find the values for the SelectCustomFieldRef. The code I am using is below:
MyItem item = new MyItem(); SelectCustomFieldRef f = (SelectCustomFieldRef) field; if (f.getInternalId().equalsIgnoreCase("the field I am looking for")) { item.setValue(f.getValue().getName()); }The problem is the following is always coming back as null.
f.getValue().getName();
I know the value is set because I can do and see the correct value.
0