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
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.