Error calling method searchRecords in CRM API

Error calling method searchRecords in CRM API

Consists in

No filters correctly if one of the filtered fields is modified in records resulting from the previous search.


For example:


We have a record in the Potentials module with the following data:

Potential_ID: xxxxxxxxxx

Stage: Seleccionada


1st.- We call the API as follows:

https://crm.zoho.com/crm/private/xml/Potentials/searchRecords?newFormat=2&authtoken=Token&scope=crmapi&criteria=((Stage:

Seleccionada))&fromIndex=1&toIndex=200"


The API returns us:

Potential_ID: xxxxxxxxxx

Stage: Seleccionada


In this first attempt, the API will do what is expected and return the item correctly.


2nd.- For a second attempt, we modified from the Zoho CRM application xxxxxxxxxx stage and change it frmo "Seleccionada" to "Rechazada".


We call the API again:

https://crm.zoho.com/crm/private/xml/Potentials/searchRecords?newFormat=2&authtoken=Token&scope=crmapi&criteria=((Stage:Seleccionada))&fromIndex=1&toIndex=200"


The API returns us:

Potential_ID: xxxxxxxxxx

Stage: Rechazada


The same search will return the same record "Potential_ID: xxxxxxxxxx" but with the "Stage: Rechazada" status. That is, not properly filtered data.

Persistence

After a few minutes and attempts, the result ends up being the expected, but in the meantime, the accumulated errors and the consequences of these errors can be multiple.


Any solution?