HOW TO PREVENT ERRORS WHEN DELETING SUBLIST ROWS USING SCRIPT IN NETSUITE? -NETSUITE ACADEMY
Category : suitescript
So, the netsuite implementation solution is to delete the 5th row first and then delete the 3rd row. See the example code below:
var line_count = nlapiGetLineItemCount(‘item’);
for(var k=line_count;k>=1;k–)// loop starting with last line
{
if(k==5||k==3)
nlapiRemoveLineItem(‘item, k);
}
Feel free to reach out TheSmilingCoders for proper netsuite implementation, netsuite consultation , netsuite customization, netsuite Support,netsuite Trainingcontact us at:
Email : [email protected]
Linkedin : https://www.linkedin.com/company/netsuite-academy/