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
);