cja
03/30/2021, 5:45 PMvar dt = format.format({type: format.Type.DATE, value: new Date()});
search.create({ type: "supportcase", filters: [['startdate', search.Operator.AFTER, dt]], columns: ["internalid"] }).run().getRange(0, 1000);
But this results in UNEXPECTED_ERROR:
var dt = format.format({type: format.Type.DATETIME, value: new Date()});
search.create({ type: "supportcase", filters: [['startdate', search.Operator.AFTER, dt]], columns: ["internalid"] }).run().getRange(0, 1000);
Date isn't enough, I need date and time.
format.Type.DATETIMETZ also causes UNEXPECTED_ERROR.