Got a issue with Suitescript 2.0 when working with...
# suitescript
d
Got a issue with Suitescript 2.0 when working with subrecords on a Line Item. My Problem is that the same code in 1.0 works, and I can't get it to work in 2.0. For some reason the documentation doesn't show how to commit the record. in 1.0 you type subRecord.commit(); and then inventoryCount.commitLineItem('item'); To commit the sub record on the line item, and then to commit the line item itself. in 2.0 fulfillment.commitLine({sublistId: 'item'}); to commit the line item works, but there isn't a function in the documentation to commit the subRecord. i've tried subRecord.commit(); and i've tried subRecord.save(); and both error saying the function does not exist, however if I try to not commit the subRecord it errors saying "Please configure the inventory detail in line 1 of the item list." (the subRecord i'm dealing with is the Inventory Detail.) Does anyone have a working example of this in 2.0? or should i just rewrite it all in 1.0?