1 answer
- 10-1
Rebecca, I believe you can use a filter of animalKillDate notblank if you want to get all animals that have a kill date.
Here's an example filter. You'd also want to filter on the animalStatus.
Notice that there's no criteria provided, although if you did accidentally provide it, it is ignored.
{ "fieldName": "animalStatus", "operation": "equals", "criteria": "Available" }, { "fieldName": "animalKillDate", "operation": "notblank" }
- Rebecca Cronin-Dixon
sorry i'm not quite sure what this means. I tried writing "notblank" but received a 500 error.
{
"fieldName":"animalKillDate",
"operation":"equal",
"criteria": "notblank"
} - Rebecca Cronin-Dixon
found the answer thanks so much for your help
- Stephan
What was the answer? I'm having the same problem with the 500 error
- Richard [RG]
Stephan, I updated my answer. Does that help you?
- Stephan
Yes, thank you. That did the trick. If you include the criteria, you get a 500 error. If you remove it, the call works. -Stephan
- Richard [RG]
Stephan, I'd like to investigate the 500 error you are seeing when you provide a criteria on this search. I can't reproduce any 500 error when providing a criteria. Could you email our support with the complete JSON you are posting to produce the error so we can investigate? support@rescuegroups.org Thank you.
- Stephan
Sure.. Email coming shortly.
Add your comment...
I'm using the HTTP API and am wondering how i can filter the data by if it has a killdate