mrob
11/16/2023, 7:19 AM0
, is there a way to find what validation is failing / error is being thrown?mrob
11/16/2023, 7:20 AMtry { paymentRecord.save(); } catch(e) { e.toJSON() }
=> 0
mrob
11/16/2023, 7:20 AMpaymentRecord.id
=> 0
mrob
11/16/2023, 7:21 AMtry { paymentRecord.save(); } catch(e) { e.toJSON() }
=> {type: "error.SuiteScriptError", name: "RCRD_DSNT_EXIST", message: "That record does not exist.", id: "0", stack: Array(1), …}
which doesn't give me any additional info