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.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.
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