Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
Error while entering Inventory Details using Script on Item Receipt.
HI All,
I am trying to create a Item Receipt from PO. While i am entering the Inventory Details on the Sub Record . It gives me error that Enter the Value of Serial/Lot Number which i am already adding in Script.
Below in my code.
var NBRReceipt = nlapiTransformRecord('purchaseorder', '4001', 'itemreceipt', {recordmode: 'dynamic'});
for(var i=1;i<=NBRReceipt.getLineItemCount('item');i++){
NBRReceipt.setLineItemValue('item','itemreceive', i, 'F');
}
var InventoryDetail = ['BP1029t63','BP1029t64'];
for(var i=1;i<=NBRReceipt.getLineItemCount('item');i++){
if(NBRReceipt.getLineItemText('item', 'item', i)=='Beneficiary - Global'){
NBRReceipt.selectLineItem('item', i);