Forums
Is it possible to search IntegerFields from the Ferret v2 api pages?
Not many of the objects have integer fields that are searchable, but the ones I tested return an error.
For example searching territories
https://developer.maximizer.com/v2/reference/post_territories-search
A string field like Name works showing this criteria
"Criteria": {
"Name": {
"$EQ": "04 No Rule"
}
}
But an integer field like SortOrder doesn't, using this criteria
"Criteria": {
"SortOrder": {
"$EQ": "0"
}
}
It returns
""/Territory/SortOrder" of type IntegerField: invalid value 0."
Is the issue caused by the pages passing the value as a string instead of an integer? I can't seem to manually override the autogenerated code to confirm that. Are other field types an issue too?
I also tested this with the user search for the disabled field and got the same
Thanks
