Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
NetSuite has launched SuiteSuccess Wholesale Distribution Edition, in Japan. Please join us the webinar on February 12 that introduces NetSuite solution with demos and case studies for Wholesale Industry.
Register Now
Have questions or experiences to share? Post your Release 2026.1 questions and join discussions in the Release 2026.1 category.
Custom Field and Custom List
I've a custom field on Return Authorization whose ID = custbody2. On UI this field is populated with custom list/record again whose ID = custbody2.
I've following code to populate the customfield, which I copied from forum itself.
---------------------------------------------------------------------
String processedStatusField = "custbody2";
String processedStatusList = "custbody2";
SelectCustomFieldRef field = new SelectCustomFieldRef();
field.setInternalId(processedStatusField);
ListOrRecordRef listOrRecord = new ListOrRecordRef ();
listOrRecord.setName("Return for Refund");
listOrRecord.setTypeId(processedStatusList);
field.setValue(listOrRecord);
CustomFieldRef[] tempCfRefList = new CustomFieldRef[1];
tempCfRefList[0] = field;
CustomFieldList cfl = new CustomFieldList();
cfl.setCustomField(tempCfRefList);
newRARec.setCustomFieldList(cfl);
---------------------------------------------------------------------
of course, after this stub I submit the request through port and record is successfully created. However, this code is not updating the field as I'm unable to see this value set on UI on newly created Return Authorization.