wsangster
06/25/2019, 3:58 PMrecord.save()
? It's adding a decimal and a zero after the decimal. So instead of 11612, it's 11612.0 . I start by doing a record.load()
with the 11612 as my id
. Then setValue
on a bunch of fields, and my log.debug shows this working. Then it hits the record.save()
and I get the error.jkabot
06/25/2019, 4:20 PMwsangster
06/25/2019, 4:21 PM{
"type": "error.SuiteScriptError",
"name": "INVALID_NUMBER",
"message": "Invalid number 11612.0",
"stack": [
"anonymous(N/serverRecordService)",
"post(/SuiteScripts/Sansom Scripts/testRestlet.js:147)"
],
"cause": {
"type": "internal error",
"code": "INVALID_NUMBER",
"details": "Invalid number 11612.0",
"userEvent": null,
"stackTrace": [
"anonymous(N/serverRecordService)",
"post(/SuiteScripts/Sansom Scripts/testRestlet.js:147)"
],
"notifyOff": false
},
"id": "",
"notifyOff": false,
"userFacing": false
}
battk
06/25/2019, 4:22 PMjkabot
06/25/2019, 4:23 PMwsangster
06/25/2019, 4:27 PM