Carlos J. Garcia
11/12/2019, 2:43 PMrequire([]);
r = require("N/record");
so = r.load({ type: "salesorder", id: 4});
lineCount = so.getLineCount({sublistId: 'item'});
lineSubrecord = so.getSublistSubrecord({ sublistId: 'item', line: 3, fieldId: "inventorydetail" })
but the lineSubrecord has no data at all
i'm aware the CSs can't modify subrecords but i'm just trying to access to the data, which according to the docs it's possibleehcanadian
11/12/2019, 3:00 PMehcanadian
11/12/2019, 3:00 PMCarlos J. Garcia
11/12/2019, 3:01 PMCarlos J. Garcia
11/12/2019, 3:02 PMli.getFields().map(f => { return f + " -> '" + li.getValue({fieldId: f}) + "'"})
Carlos J. Garcia
11/12/2019, 3:03 PMehcanadian
11/12/2019, 3:04 PMCarlos J. Garcia
11/12/2019, 3:05 PMbattk
11/12/2019, 3:12 PMbattk
11/12/2019, 3:12 PMbattk
11/12/2019, 3:12 PMCarlos J. Garcia
11/12/2019, 4:10 PMDmitry Masanov
11/13/2019, 6:04 AM