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.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
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