I need to clear (delete) all emergency data for em...
# suitescript
z
I need to clear (delete) all emergency data for employees. I couldn't find where NetSuite store these data? something like addressbook
c
Employee record->Human Resources->Emergency Contacts. If that's what you're meaning
Looks like the line is
emergencycontact
z
Yes, I am looking for Emergency contact. Using debugger, I am also found live id 'emergencycontact' ... there is no information about this sublist in Help, record browser...
c
What's your actual question? It's a sublist. So to delete
getLineCount({ sublistId: 'emergencycontact' });
then loop a
removeLine({ sublistId: 'emergencycontact', line: yourloopidthing  });
j
I believe CD has given you what you need. If you want easy access to the structure of records and their fields, I recommend this Chrome extension. https://chrome.google.com/webstore/detail/netsuite-field-explorer/cekalaapeajnlhphgdpmngmollojdfnd
❤️ 1
n
Just make sure you loop from the bottom up if deleting sublist lines 😉
z
Hi people thanks for help. At the first moment I couldn't find any information about emergemcy contact sublist (record browser)... Later, with Debugger and dumpling employee JSON record I found id for emergency contact sublist... Thank you all!