Can we use SuiteScript to programmatically add val...
# suitescript
m
Can we use SuiteScript to programmatically add values to a List?
a
Yes you can:
Copy code
let oListRec = record.load({type: 'customlist', id: '245'});
oListRec.insertLine({sublistId: 'customvalue', line: 0});
oListRec.setSublistValue({sublistId: 'customvalue', line: 0, fieldId: "value", value: 'Another Box'});
👍 1
m
Amazing, thank-you!
👍 1