Hi all, I am trying to "attach" a Sales Order to a...
# suitescript
r
Hi all, I am trying to "attach" a Sales Order to a Support Case using Suitescript 2.0. record.attach({ record: {type: record.Type.SALES_ORDER, id: '11111'}, to: {type: record.Type.SUPPORT_CASE, id: '22222'} }); Getting error errorMsg: "{"type":"error.SuiteScriptError","name":"SSS_INVALID_ATTACH_RECORD_TYPE","message":"Attaching of record type salesorder to supportcase is not supported.", Is record.attach the correct approach to achieve this? What other options do I have? Thanks
message has been deleted
Basically we need to achieve this (please check screenshot) but not from UI.
I got this. Its actually the other way around. Attaching support case to an order. record.attach({ record: {type: record.Type.SUPPORT_CASE, id: '22222'}, to: {type: 'transaction', id: '11111'} }); Thanks