anyone know if there's a way to get the item optio...
# suitescript
s
anyone know if there's a way to get the item option values from sales order lines in a server side script?
Copy code
rec.getSublistValue({sublistId: 'item', fieldId: 'options', line: 0})
for standard or dynamic modes.
getSublistFields
shows the
options
field exists, but
Copy code
rec.getSublistField({sublistId: 'item', fieldId: 'options', line: 0})
returns null too. i can get them from a client script while the record's in edit mode, so i could offload them to a different field, but that sounds... dirty.
b
do what @alien4u suggested, go to the item option record, find its scriptid, then get that value instead
as an example:
Copy code
rec.getSublistField({sublistId: 'item', fieldId: 'custcol1', line: 0})
s
RIGHT! headbang thanks, @battk and @alien4u it must be friday 😄
👍 1