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
Please note that on Friday, March 20, 2026, at 8:00 PM Pacific time, our Case Management System will undergo a scheduled maintenance for approximately 4 hours. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
Internal ID of CustomFieldRef
CustomFieldList cfl = customrec.getCustomFieldList(); CustomFieldRef[] cfr = cfl.getCustomField(); StringCustomFieldRef bankgironummer = null; for (int i = 0; i < cfr.length; i++) { bankgironummer = (StringCustomFieldRef) cfr[i]; if (bankgironummer.getInternalId().equals("custrecord_bankgironummer")) { break; } } My problem is that I want to be able to loop through cfr (an array of CustomFieldRef objects) and get their Internal IDs. When it matches with the desired Internal ID, I want to break.
I have not been able to find a method to get the Internal ID for a CustomFieldRef, so I'm forced to cast the object into a StringCustomFieldRef. This works fine as long as the Custom Field is a FreeForm Text field, but when I have other fields, for example a Custom Field with Integer it doesn't work.
0