1
0
-1

I'm using the HTTP API and am wondering how i can filter the data by if it has a killdate 

    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -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"
      }


      1. 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"
        }

      2. Rebecca Cronin-Dixon

        found the answer thanks so much for your help

      3. Stephan

        What was the answer? I'm having the same problem with the 500 error

      4. Richard [RG]

        Stephan, I updated my answer. Does that help you?

      5. 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

      6. 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.

      7. Stephan

        Sure.. Email coming shortly.

      CommentAdd your comment...