EDAPI code help
This should be straightforward. It should return all records with Balance_Due > 0.
It returns them correctly but… I get 1 record that has a 0 balance as well. I have gone to the record in FM and edited the record to ensure it is indeed 0.
I feed the query result into Datatables.
Any thoughts?
Let (
[
$layouts = $layouts ;
$limit = $limit ;
$query = JSONSetElement ( "[]" ; "[0].Balance_Due" ; ">0" ; JSONString );
$request = JSONSetElement ($request; "layouts" ; $layouts ; JSONString);
$request = JSONSetElement ( $request ; "query" ; $query ; JSONArray ) ;
$request = JSONSetElement ( $request ; "limit" ; $limit ; JSONNumber )
];
$request
)