Incorrect results from API for contacts end point
Posted: Wed May 03, 2023 1:39 pm
For the contacts end point I need to get a list of changes. I've tried to narrow down by DateModified but i get incorrect data.
We are on simpro cloud as its a private server.
I narrowed it down to an individual record to provide this example but this is happening for whatever i change against the contacts end point.
Example 1 (using DateModified=ge(2023-05-03))
If i call /contacts/8035?columns=ID,DateModified
then i get result:
{
"ID": 8035,
"DateModified": "2023-05-03T14:17:38+01:00"
}
so then if i call /contacts/8035?columns=ID,DateModified&DateModified=ge(2023-05-03) i should see that record...but i don't, i get 4 different records that have also been modified today...so i can't tell that this record has been modified!
I can use if-modified-since to get the data i need, but it does mean reworking my code which is running for multiple blocks which will be a pain if this is just a temporary bug that will be fixed, so my question is...is it broken or am i calling it wrong?
We are on simpro cloud as its a private server.
I narrowed it down to an individual record to provide this example but this is happening for whatever i change against the contacts end point.
Example 1 (using DateModified=ge(2023-05-03))
If i call /contacts/8035?columns=ID,DateModified
then i get result:
{
"ID": 8035,
"DateModified": "2023-05-03T14:17:38+01:00"
}
so then if i call /contacts/8035?columns=ID,DateModified&DateModified=ge(2023-05-03) i should see that record...but i don't, i get 4 different records that have also been modified today...so i can't tell that this record has been modified!
I can use if-modified-since to get the data i need, but it does mean reworking my code which is running for multiple blocks which will be a pain if this is just a temporary bug that will be fixed, so my question is...is it broken or am i calling it wrong?