Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.
Custom Lists
I have created a custom list and assigned it to a Custom CRM field and applied it to Case records. Using the web services I am trying to set this value programatically by doing this: (some items omitted for brevity).
CustomFieldRef cfr = new StringCustomFieldRef();
cfr.value = <the value of the field>;
cfr.internalId = <the internal id of the list item>;
then
CustomFieldRef[] cfrAry = new CustomFieldRef[1];
cfrAry[0] = cfr;
newRecord.customFieldList = cfrAry;
I know the internal Id is correct, but I'm getting this error:
Code=INVALID_CSTM_FIELD_DATA_TYP] The customfield [CUSTEVENTCUSTTZ] reference object does not match its data type.
0