REST API - CustomObjects bool filters accept 0,1 values instead of true,false. | Community
Skip to main content
Level 2
August 13, 2024
Question

REST API - CustomObjects bool filters accept 0,1 values instead of true,false.

  • August 13, 2024
  • 0 replies
  • 476 views

Filtering CustomObjects by boolean type must be done using 0/1 values.
Example:

This request works as expected and returns all custom objects with "Test" set to true.

 

 

{ "fields": ["CreatedAt","MarketoGUID","UpdatedAt","Test"], "filterType": "Test", "input": [ { "Test": 1 } ] }

 

 

Even using "Test": "1" works as expected, however, using "Test": true, or "Test": "true", or "Test": "True" does not work.

 

Testing with form data shows the same results

 

Is this expected and documented? Filtering ProgramMembers using the "reachedSuccess" boolean field works with "true"/"false" values.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.