Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
Don’t miss your chance to meet our SuiteGurus—NetSuite Support professionals and subject matter experts with extensive experience in select product areas, including OneWorld, Advanced & Basic Accounting, Supply Chain Management, Receivables & Payables, CRM, Account Administration, and the SuiteCloud Platform. Full Conference attendees can prebook exclusive 30-minute one-on-one sessions for your product questions.
Spots are limited! Register through your Agenda Builder and find SuiteGuru under Agenda Enhancements.
Updation of Customfield
Hi All,
We have created a custom field in salesorder.When we try to update that custom field it is giving the error as
Error Code: INVALID_KEY_OR_REF
Error Message : The Specified key is invalid. I have given the code below.
Can u pls help me out where i did wrong
SelectCustomFieldRef sel = (SelectCustomFieldRef)salesOrderHeader.itemList.it em[j].customFieldList[0];
SelectCustomFieldRef listCF = new SelectCustomFieldRef();
listCF.internalId = sel.internalId;
ListOrRecordRef listRef = new ListOrRecordRef();
listRef.internalId = "1";
listRef.typeId = "24";
listCF.value = listRef;
CustomFieldRef[] cfRefs = null;
cfRefs = new CustomFieldRef[1];
cfRefs[0] = listCF;
SalesOrder sales = new SalesOrder();
sales.customFieldList = cfRefs;
WriteResponse wres = cnw.update(sales);