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.
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