Example on the `record.attach` Help page: ``` var ...
# suitescript
e
Example on the
record.attach
Help page:
Copy code
var id = record.attach({
    record: {
        type: 'file',
        id: '200'
    },
    to: {
        type: 'customer',
        id: '90'
    }
});