Quantcast
Channel: DHIS2 Community - Latest topics
Viewing all articles
Browse latest Browse all 1891

Unable to list all TEI's using the API - paging=false being ignored

$
0
0

I’d like to list all TEI’s of a particular type using the API but it only displays 50 at a time despite the paging=false setting:

I’m attempting to get the TEI UID for all TEIs so I can register them in a program by import but can’t get the TEI list. I assume it’s not possible to enroll a TEI in a program at the same time as generating the TEI - I’m doing it in a 2-step process and while the registration seems to work, I can’t then get the TEI UID to register each individual in a program.

Right now, without this working, and no direct DB access, I’m struggling to see how one is able to import TEIs and enrollments in bulk as enrollments require the TEI (UID) to be supplied.

EDIT For anyone else struggling with this, try adding pageSize=10000 (or other suitably large number) and page=1 to the query to work around it… like this:

2 posts - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 1891

Trending Articles