Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
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?