Hi All, What's the best way to set a line item cus...
# suitecommerce
l
Hi All, What's the best way to set a line item custcol field on an order when programmatically adding an item to the cart, and is there a document/sample code on it somewhere?
s
Copy code
Cart.addLine({
    line: {
        internalid: '3899',
        quantity: 1,
        item: {
            internalid: '3899'
        },
        options: [
            {cartOptionId: 'custcol1', value: {internalid: 'Test'}},
            {cartOptionId: 'custcol_gen_color', value: '3'},
            {cartOptionId: 'custcol_gen_size', value: '5'}
        ]
    }
})
✔️ 2
👍 1
l
GREAT!!!
netsuite halo 1
I was hoping it could be done with the Extensibility API just like that!