← Back to team overview

dhis2-devs team mailing list archive

Re: TEI and Enrollments API GET calls are not considering date range

 

Hi Rajeswari, 

please remove the page & pageSize and try again

 

Kind regards

Djibril

From: Dhis2-devs <dhis2-devs-bounces+djibril=hisp.org@xxxxxxxxxxxxxxxxxxx> On Behalf Of Rajeswari Gottipati
Sent: Tuesday, 28 August 2018 11:44 AM
To: dhis2-devs <dhis2-devs@xxxxxxxxxxxxxxxxxxx>; Morten Olav Hansen <morten@xxxxxxxxx>; Lars Helge Øverland <lars@xxxxxxxxx>
Cc: Evgenia ZELIKOVA <evgenia.zelikova@xxxxxxxxxxxxx>; Thomas RODRIGUEZ <thomas.rodriguez@xxxxxxxxxxxxx>; twmsf <twmsf@xxxxxxxxxxxxxxxx>; Anceline DUPOUY <anceline.dupouy@xxxxxxxxxxxxx>; Megan McGuire <megan.mcguire@xxxxxxxxxxxxxxx>; Kristina Reinhardt <kristina.reinhardt@xxxxxxxxxxxxxxx>; Sonia Diverres <sonia.diverres@xxxxxxxxxxxxx>
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 disclaimer@xxxxxxxx 
<mailto:disclaimer@xxxxxxxx> 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.*

References