Discussions
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. Join us
[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);