Vor Kurzem aufgerufene Suchen


Keine vor kurzem aufgerufene Suchen

Error searching for fields type Checkbox



Gepostet 19. Feb. 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 Kommentar

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


Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.

Sie finden nicht, wonach Sie suchen?

Neuer Post