Hi,
I count the number of records related to a specific task this way:
pulldata("@layer", "getValue", "attributes.totalcount", concat(${url_query}, '?outStatistics=[{"statisticType": "count","onStatisticField": "objectId","outStatisticFieldName": "totalcount"}]'), concat("task_id ='",${task_id},"'"))
where ${url_query} is the feature layer url and ${task_id} the filter value for the task_id attribute.
It works fine but it seems that Survey123 is caching the result of the request which means that when I create another record related to the same task, the count is not updated.
I was able to confirm that by looking at the requests done by Survey123 with a tool like Fiddler.
This is really annoying for our workflow as it means that Survey123 has to be stopped and restarted for the request to be sent and the count updated.
Could this behaviour be changed?
Thanks,
Olivier