# Get all contacts after dateAdded or dateModified using advanced filter

**URL:** <https://forum.mautic.org/t/get-all-contacts-after-dateadded-or-datemodified-using-advanced-filter/33024>\
**Category:** Product Support\
**Created:** [August 5, 2024, 12:44pm UTC](https://forum.mautic.org/t/get-all-contacts-after-dateadded-or-datemodified-using-advanced-filter/33024 "2024-08-05T12:44:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yuyu](https://avatars.discourse-cdn.com/v4/letter/y/71e660/32.png) [@yuyu](https://forum.mautic.org/u/yuyu)\
**Post date:** [August 5, 2024, 12:44pm UTC](https://forum.mautic.org/t/get-all-contacts-after-dateadded-or-datemodified-using-advanced-filter/33024/1 "2024-08-05T12:44:08Z")

</div>

**Your problem**  
My problem is:

I want to get all the contacts after a specific dateAdded and dateModified. Because the dateModified is null when a contact is newly created. I just want to get all the newly created and modified contacts after my last synchronisation.

These errors are showing in the log:

"{“errors”:[{“message”:"Es sieht so aus, als ob wir auf einen Fehler gesto\u00dfen sind (Fehler #500). Bitte melden Sie dies dem Administrator wenn es nochmal passiert. “,“code”:500,“type”:null}]}”

Steps I have tried to fix the problem:

I have tried this request

GET /api/contacts?  
where[0][expr]=orX&  
where[0][val][0][col]=dateAdded&  
where[0][val][0][expr]=gt&  
where[0][val][0][val]=2024-08-02 15:00:00&  
where[0][val][1][col]=dateModified&  
where[0][val][1][expr]=gt&  
where[0][val][1][val]=2024-08-02 15:00:00

When I filter the dateAdded and dateModified separately. I can get the right results. But when I try to combine the two fields with “orX”, it doesn’t work any more. Can someone help me with that? Thank you very much
