Sorry for unclear description, please create an app who has a field named “Number”, and some items in “Number” field are empty.
And then invoke the following code:
var body = {
“app”: 17330,
“query”: ‘(Number < “10”)’,
“fields”: [“Number”]
};
kintone.api(kintone.api.url(’/k/v1/records’, true), ‘GET’, body, function(resp) {
// success
console.log(resp);
}, function(error) {
// error
console.log(error);
});
An error with message "“Illegal request.” will be thrown.
But if condition is >, it won’t throw the error:
var body = {
“app”: 17330,
“query”: ‘(Number > “10”)’,
“fields”: [“Number”]
};
kintone.api(kintone.api.url(’/k/v1/records’, true), ‘GET’, body, function(resp) {
// success
console.log(resp);
}, function(error) {
// error
console.log(error);
});
And if I try to get all fields with < condition, it works well too:
var body = {
“app”: 17330,
“query”: ‘(Number < “10”)’,
“fields”: []
};
kintone.api(kintone.api.url(’/k/v1/records’, true), ‘GET’, body, function(resp) {
// success
console.log(resp);
}, function(error) {
// error
console.log(error);
});