Hi Rajeswari, 

please remove the page & pageSize and try again

 

Kind regards

Djibril

From: Dhis2-devs <[email protected]> On 
Behalf Of Rajeswari Gottipati
Sent: Tuesday, 28 August 2018 11:44 AM
To: dhis2-devs <[email protected]>; Morten Olav Hansen 
<[email protected]>; Lars Helge Øverland <[email protected]>
Cc: Evgenia ZELIKOVA <[email protected]>; Thomas RODRIGUEZ 
<[email protected]>; twmsf <[email protected]>; Anceline 
DUPOUY <[email protected]>; Megan McGuire 
<[email protected]>; Kristina Reinhardt 
<[email protected]>; Sonia Diverres 
<[email protected]>
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 [email protected] 
<mailto:[email protected]> 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     : [email protected]
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp

Reply via email to