Discussions
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
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.