b
09/15/2020, 2:15 PMemail.send({
author: 23130,
recipients: sendTo,
subject: subject,
body: body,
attachments: [billPayFile],
RelatedRecords: {
entityId: vendorId,
transactionId: billPayId
}
});
I have confirmed that billPayId is the internal id of the transaction and it is a number.scottvonduhn
09/15/2020, 2:17 PMb
09/15/2020, 2:17 PMscottvonduhn
09/15/2020, 2:19 PMb
09/15/2020, 2:20 PMscottvonduhn
09/15/2020, 2:21 PMstalbert
09/15/2020, 2:22 PMb
09/15/2020, 2:22 PMscottvonduhn
09/15/2020, 2:23 PMb
09/15/2020, 2:23 PMb
09/15/2020, 2:23 PMb
09/15/2020, 2:59 PM{
"type": "error.SuiteScriptError",
"name": "UNEXPECTED_ERROR",
"message": "An unexpected SuiteScript error has occurred",
"stack": [
"Error\n at Object.reduce (/SuiteScripts/cbc_mr_send_billpayments.js:124:19)"
],
"cause": {
"type": "internal error",
"code": "UNEXPECTED_ERROR",
"details": "An unexpected SuiteScript error has occurred",
"userEvent": null,
"stackTrace": [
"Error\n at Object.reduce (/SuiteScripts/cbc_mr_send_billpayments.js:124:19)"
],
"notifyOff": false
},
"id": "",
"notifyOff": false,
"userFacing": true
}
scottvonduhn
09/15/2020, 3:23 PMscottvonduhn
09/15/2020, 3:25 PMb
09/15/2020, 3:28 PMb
09/15/2020, 3:32 PMscottvonduhn
09/15/2020, 3:43 PMb
09/15/2020, 3:59 PM