How can I set an item unit on a sales order via su...
# suitescript
p
How can I set an item unit on a sales order via suitescript? I've tried the below but neither is working:
Copy code
rec.setCurrentSublistValue({
sublistId: 'item',
 fieldId: 'units',
value: 16,
forceSyncSourcing: true
})
Copy code
rec.setCurrentSublistValue({
sublistId: 'item',
 fieldId: 'units',
value: '16',
forceSyncSourcing: true
})
b
looks normal for client script
share more code for more details
e
are you calling commitLine()?
p
found the issue. did not realize the item did not have a unit assigned to it in the UI.