Recent searches


No recent searches

Error searching for fields type Checkbox



Posted Feb 19, 2025

I can't search for a field of type checkbox by passing `false`; this throws an "Invalid value" error.

 

On endpoint: POST /api/v2/custom_objects/{custom_object_key}/records/search

 

Example Request:

{

    "filter":{ 

        "$and": [

            {"custom_object_fields.avaliable": {"$eq": false}}

        ]

    }

}

Response:

{

    "error": {

        "title": "Unsupported Condition",

        "message": “Invalid value”

    }

}


0

1

1 comment

image avatar

Greg Katechis

Zendesk Developer Advocacy

Hi Leonardo! Can you confirm that you have a custom object that has a key called “available”? I just want to check because it's similar to our example docs here and if you're looking for just a checkbox, you would need to call out the specific keys for all of those checkboxes. If you had more than one, you would need to use the “or” array for this. 

 

If you do have a checkbox with “available” as a key, let me know and we can investigate this further!

0


Please sign in to leave a comment.

Didn't find what you're looking for?

New post