Hi everyone, I am new to suitescript, I tried to ...
# suitescript
w
Hi everyone, I am new to suitescript, I tried to use scriptContext.currentRecord.getCurrentSublistSubrecord to get item inventory detail, it returns the dynamic subrecord, anyway to get the subrecord of a specific item line? Thanks.
t
try using
context.currentRecord.getSublistValue({
sublistId: [sublistId],
fieldId: [fieldId]
line: [line#]
});
s
getSublistSubrecord
or with NFT, just
somerecord.sublist.subrecordfield
w
Copy code
Thanks for the thoughts. Finally I get there using context.currentRecord.selectLine({
              sublistId: 'item',
              line: i
          });
👍 1