Detaches a record from another record using Suitescript

To detaches a record from another record, use record.detach()

Suitescript sample

record.detach({
    record: {
        type: 'file',
        id:'200'
    },
    from: {
        type: 'customer',
        id:'90'
    }
})

Leave a comment

Your email address will not be published. Required fields are marked *