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.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
c# sample code to set employees' with related custom fields to null with SuiteTalk
[h=2]Hi all,[/h] to set a custom field defined on the employees I did:
ListOrRecordRef mainReviewer = new ListOrRecordRef();
mainReviewer.internalId = "id from the related list here";
SelectCustomFieldRef scfr1 = new SelectCustomFieldRef();
scfr1.internalId = "1625";
scfr1.scriptId = "custentity_employee_main_reviewer";
scfr1.value = mainReviewer;
emp.customFieldList[0] = (CustomFieldRef)scfr1;
Now, I'm trying to set to null that field and I haven't found code samples to do it.
Can anybody out there help me?
Many thanks,
Antonio
0