gstea6
08/21/2023, 2:24 AMraghav
08/21/2023, 2:48 AMgstea6
08/21/2023, 2:51 AMbattk
08/21/2023, 3:21 AMgstea6
08/21/2023, 3:23 AMbattk
08/21/2023, 3:28 AMgstea6
08/21/2023, 3:38 AMbattk
08/21/2023, 3:41 AMgstea6
08/21/2023, 3:59 AMbattk
08/21/2023, 4:19 AMgstea6
08/21/2023, 4:22 AM{
"type": "error.SuiteScriptError",
"name": "SSS_INVALID_ATTACH_RECORD_TYPE",
"message": "Attaching of record type creditmemo to supportcase is not supported.",
"id": "",
"stack": [
"attachRecord(N/recordImpl)",
"afterSubmit(/SuiteScripts/ACL/User Event/attachSupportCase.js:35)"
],
"cause": {
"type": "internal error",
"code": "SSS_INVALID_ATTACH_RECORD_TYPE",
"details": "Attaching of record type creditmemo to supportcase is not supported.",
"userEvent": "aftersubmit",
"stackTrace": [
"attachRecord(N/recordImpl)",
"afterSubmit(/SuiteScripts/ACL/User Event/attachSupportCase.js:35)"
],
"notifyOff": false
},
"notifyOff": false,
"userFacing": false
}
battk
08/21/2023, 4:45 AMbattk
08/21/2023, 4:45 AMgstea6
08/21/2023, 4:48 AMbattk
08/21/2023, 4:50 AMgstea6
08/21/2023, 4:53 AMbattk
08/21/2023, 4:57 AMbattk
08/21/2023, 4:57 AMbattk
08/21/2023, 4:57 AMbattk
08/21/2023, 4:58 AMbattk
08/21/2023, 4:58 AMgstea6
08/21/2023, 5:00 AMgstea6
08/21/2023, 5:00 AMgstea6
08/21/2023, 5:01 AMbattk
08/21/2023, 5:05 AMgstea6
08/21/2023, 5:32 AMrecord.attach({
record: {
type: record.Type.SALES_ORDER,
id: newRec.id},
to: {
type: record.Type.SUPPORT_CASE,
id: scId}
});
It returns void, but it worksbattk
08/21/2023, 5:55 AMbattk
08/21/2023, 5:55 AMgstea6
08/21/2023, 6:02 AMCD
08/21/2023, 9:25 AMWatz
08/21/2023, 9:58 AMgstea6
08/21/2023, 10:55 PM