Does anyone know how to create a schedule script deployment on the fly?
I am currently using
var scriptDeployment = record.create({
type: record.Type.SCRIPT_DEPLOYMENT
})
But netsuite is giving me this error
type: "error.SuiteScriptError",
name: "RECORD_DOES_NOT_EXIST",
message: "Record does not exist",