Hi Rajeswari, please remove the page & pageSize and try again
Kind regards Djibril From: Dhis2-devs <dhis2-devs-bounces+djibril=hisp....@lists.launchpad.net> On Behalf Of Rajeswari Gottipati Sent: Tuesday, 28 August 2018 11:44 AM To: dhis2-devs <dhis2-devs@lists.launchpad.net>; Morten Olav Hansen <mor...@dhis2.org>; Lars Helge Øverland <l...@dhis2.org> Cc: Evgenia ZELIKOVA <evgenia.zelik...@paris.msf.org>; Thomas RODRIGUEZ <thomas.rodrig...@paris.msf.org>; twmsf <tw...@thoughtworks.com>; Anceline DUPOUY <anceline.dup...@paris.msf.org>; Megan McGuire <megan.mcgu...@newyork.msf.org>; Kristina Reinhardt <kristina.reinha...@newyork.msf.org>; Sonia Diverres <sonia.diver...@paris.msf.org> Subject: [Dhis2-devs] TEI and Enrollments API GET calls are not considering date range Hi DHIS Team, We are using below API calls to get the TrackedEntityInstance Ids and Enrollment Ids. https:// <https://%3chost_name%3e/api/trackedEntityInstances?lastUpdatedStartDate=2018-06-17&lastUpdatedEndDate=2018-09-02&fields=trackedEntityInstance&ou=%3corgUnit%3e&ouMode=DESCENDANTS&page=5&pageSize=1000&program=%3cprogram%3e&totalPages=true> <host_name>/api/trackedEntityInstances?lastUpdatedStartDate=2018-06-17&lastUpdatedEndDate=2018-09-02&fields=trackedEntityInstance&ou=<orgUnit>&ouMode=DESCENDANTS&page=5&pageSize=1000&program=<program>&totalPages=true http:// <http://%3chost_name%3e/api/enrollments?programEndDate=2018-08-05&programStartDate=2018-05-20&fields=enrollment&ou=%3corgUnit%3e&ouMode=DESCENDANTS&page=1&pageSize=1000&totalPages=true&program=%3cprogram> <host_name>/api/enrollments?programEndDate=2018-08-05&programStartDate=2018-05-20&fields=enrollment&ou=<orgUnit>&ouMode=DESCENDANTS&page=1&pageSize=1000&totalPages=true&program=<program> The above API calls returning the total number of ids but not returning any ids. Could you please help us to identify what we have done incorrect. Thanks, Rajeswari & Gaurav. -- *This message and any attachments are subject to a disclaimer published at http://www.hisp.org/policies.html#comms_disclaimer <http://www.hisp.org/policies.html#comms_disclaimer>. Please read the disclaimer before opening any attachment or taking any other action in terms of this electronic transmission. If you cannot access the disclaimer, kindly send an email to disclai...@hisp.org <mailto:disclai...@hisp.org> and a copy will be provided to you. By replying to this e-mail or opening any attachment you agree to be bound by the provisions of the disclaimer.*
_______________________________________________ Mailing list: https://launchpad.net/~dhis2-devs Post to : dhis2-devs@lists.launchpad.net Unsubscribe : https://launchpad.net/~dhis2-devs More help : https://help.launchpad.net/ListHelp