I'm trying to attach a Work Order to a Transfer Or...
# suitescript
n
I'm trying to attach a Work Order to a Transfer Order using the following,
Copy code
recordModule.attach({
    record: {
        type: recordModule.Type.WORK_ORDER,
        id: workOrderId
    },
    to: {
        type: recordModule.Type.TRANSFER_ORDER,
        id: transferOrderId
    }
});
Error:
TypeError: Cannot find function attach in object standard record.
Am I correct in calling
recordModule.attach
?