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!
[Error]: [Code=INVALID_CSTM_RCRD_TYPE_KEY] Invalid custom record type key.
[FONT=inherit]Looking for someone to tell us more about the cause of "Invalid custom record type key" errors.
The code below is for updating an item review(StringCustomFieldRef).
We need some hints or suggestions about adding an item related review and updates to it?[/FONT]
[INDENT][FONT=inherit]RecordRef recRef = new RecordRef();
recRef.setInternalId("265");//setting the internal id of the netsuite custom record
CustomRecord customRecord = new CustomRecord();
customRecord.setRecType(recRef);
StringCustomFieldRef customField = new StringCustomFieldRef();
customField.setValue("Reviews-ABC1-XA");//value to be assigned
customField.setInternalId("custitem_productreviews 1");//internal id of the field
CustomFieldList cf2 = new CustomFieldList(new CustomFieldRef[]{customField});
customRecord.setCustomFieldList(cf2);