AnsweredAssumed Answered

Checking a custom checkbox is ticked via API

Question asked by jclark@enhanced.co.uk on Aug 17, 2015
Latest reply on Aug 18, 2015 by dkallish84 dkallish84
Hi,

Sugar 7.5.x v10 API
Just checking I'm doing this the best way...

I've created a custom checkbox, and want to filter on that via the API so adding parameter:

filter[0][make_active_c]=true  
But the default value shows in the JSON returned by the API is not false, but empty string "".

Doing the above parameter also returns the empty strings, so I've also added parameter:

filter[0][make_active_c][$not_equals]=

Which then successfully filters out the non-checked records.  Is this normal / correct / best way of dealing with this?

Thanks Loads,
Jon

Outcomes