I am posting lots of data to the DHIS2 API (around 4,000 records).
I figured the best way to do this was to use
?async=true but there’s no way to get references to the newly created
trackedEntityInstances this way.
The other problem is… when I import them without
async=true the ID’s are all jumbled (not in the same order as I sent them). So there’s no way to associate the new DHIS2 ID (reference) against my local record.
How do I associate a DHIS2 reference against a local record efficiently?