How do I go about setting an inventory number on t...
# suitescript
a
How do I go about setting an inventory number on the component sublist of an assembly build? (Forgive phone formatting) I currently have, but keep getting the error to configure inventory detail. var componentSubRecord = assemblyBuild.getCurrentSublistSubrecord({ sublistId: 'component', fieldId: 'componentinventorydetail', line: i, }); componentSubRecord.selectNewLine('inventoryassignment'); componentSubRecord.setCurrentSublistValue( ‘inventoryassignment', 'issueinventorynumber', componentserialnumber );
b
the usual is to create the assembly build in the ui first
set the same fields in the same order that you would in the ui
inspect the assembly build / inventory details in script so that you can see the ids and values of the fields that you set