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.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
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