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.
ListOrRecordRef not working
Hi,
I'm trying to update a value on a select field but it does not seem to work.
Customer _cust = new Customer();
CustomFieldRef[] CustRefList;
SelectCustomFieldRef _customSelect = new SelectCustomFieldRef();
ListOrRecordRef _listOrRecRef = new ListOrRecordRef();
_listOrRecRef.typeId = "820"; //id of the list
_listOrRecRef.internalId = "3"; //id of the value in the lsit
_customSelect.internalId = "custentity_sales_region"; //id of the field on the customer form
_customSelect.value = _listOrRecRef;
CustRefList[_customFieldCount] = (CustomFieldRef)_customSelect;
_cust.customFieldList = CustRefList;
Does anyone know what I am doing wrong?