We are trying to reduce the number of call to worldcheck.
First we call "cases/saveAndScreen" to create a new case
We then save the caseSystemId for subsequent call
Then we call "cases/screeningStatus" to get the result
If the user want to get the result of the same case, we check if we have the caseSystemId for the criteria
Then we are calling "cases/{caseSystemId}/screeningRequest", which returns 201 Created
Then I loop on "cases/{caseSystemId}/auditEvents", If the actionType is SCREENED_CASE and noOfNewResults is different than 0 then we have results and We can get the results
Got the info from this question
but I have an infinite loop and noOfNewResults is always 0
What am I doing wrong ?