<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Pulldata @layer seems to be caching results in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-layer-seems-to-be-caching-results/m-p/1305924#M50449</link>
    <description>&lt;P&gt;I have ran into the same issue, but I am using getRecord instead of getValue. I have a field (form_json) to store the json with it's calculation looking like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;pulldata("@layer", "getRecord", "&amp;lt;PortalURL&amp;gt;?orderByFields=readingtime2 DESC", "1=1")&lt;/P&gt;&lt;P&gt;I then use pulldata again to populate the field I want with:&lt;/P&gt;&lt;P&gt;pulldata("@json",${form_json},"attributes.hscurrentmeterread")&lt;/P&gt;&lt;P&gt;I'm unsure how to use the random function as you did above to make my call refresh every time.&lt;/P&gt;</description>
    <pubDate>Wed, 05 Jul 2023 20:09:26 GMT</pubDate>
    <dc:creator>LWWCGIS</dc:creator>
    <dc:date>2023-07-05T20:09:26Z</dc:date>
    <item>
      <title>Pulldata @layer seems to be caching results</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-layer-seems-to-be-caching-results/m-p/1258393#M47488</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I count the number of records related to a specific task this way:&lt;/P&gt;&lt;P&gt;pulldata("@layer", "getValue", "attributes.totalcount", concat(${url_query}, '?outStatistics=[{"statisticType": "count","onStatisticField": "objectId","outStatisticFieldName": "totalcount"}]'), concat("task_id ='",${task_id},"'"))&lt;/P&gt;&lt;P&gt;where ${url_query} is the feature layer url and ${task_id} the filter value for the task_id attribute.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;I was able to confirm that by looking at the requests done by Survey123 with a tool like Fiddler.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Could this behaviour be changed?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Olivier&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 09:40:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-layer-seems-to-be-caching-results/m-p/1258393#M47488</guid>
      <dc:creator>OlivierDemars1</dc:creator>
      <dc:date>2023-02-15T09:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: Pulldata @layer seems to be caching results</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-layer-seems-to-be-caching-results/m-p/1258438#M47492</link>
      <description>&lt;P&gt;Maybe try adding a cache buster parameter to the URL?&amp;nbsp; Something like "xyz=1234567890" where the number is randomly generated?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 13:10:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-layer-seems-to-be-caching-results/m-p/1258438#M47492</guid>
      <dc:creator>MobiusSnake</dc:creator>
      <dc:date>2023-02-15T13:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: Pulldata @layer seems to be caching results</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-layer-seems-to-be-caching-results/m-p/1259753#M47547</link>
      <description>&lt;P&gt;Great idea, it works, thanks.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just changed my call like this:&lt;/P&gt;&lt;P&gt;pulldata("@layer", "getValue", "attributes.totalcount", concat(${url_query}, '?outStatistics=[{"statisticType": "count","onStatisticField": "objectId","outStatisticFieldName": "totalcount"}]'), concat("task_id ='",${task_id},"' and task_id &amp;lt;&amp;gt;'",string(random()),"'"))&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 03:06:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-layer-seems-to-be-caching-results/m-p/1259753#M47547</guid>
      <dc:creator>OlivierDemars1</dc:creator>
      <dc:date>2023-02-20T03:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: Pulldata @layer seems to be caching results</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-layer-seems-to-be-caching-results/m-p/1305924#M50449</link>
      <description>&lt;P&gt;I have ran into the same issue, but I am using getRecord instead of getValue. I have a field (form_json) to store the json with it's calculation looking like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;pulldata("@layer", "getRecord", "&amp;lt;PortalURL&amp;gt;?orderByFields=readingtime2 DESC", "1=1")&lt;/P&gt;&lt;P&gt;I then use pulldata again to populate the field I want with:&lt;/P&gt;&lt;P&gt;pulldata("@json",${form_json},"attributes.hscurrentmeterread")&lt;/P&gt;&lt;P&gt;I'm unsure how to use the random function as you did above to make my call refresh every time.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2023 20:09:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-layer-seems-to-be-caching-results/m-p/1305924#M50449</guid>
      <dc:creator>LWWCGIS</dc:creator>
      <dc:date>2023-07-05T20:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: Pulldata @layer seems to be caching results</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-layer-seems-to-be-caching-results/m-p/1305940#M50451</link>
      <description>&lt;P&gt;I was finally able to get it. Needed to remove 1=1&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2023 20:37:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-layer-seems-to-be-caching-results/m-p/1305940#M50451</guid>
      <dc:creator>LWWCGIS</dc:creator>
      <dc:date>2023-07-05T20:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Pulldata @layer seems to be caching results</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-layer-seems-to-be-caching-results/m-p/1308417#M50651</link>
      <description>&lt;P&gt;Hey guys, this is a really useful topic, I am trying to get the count of concrete selection on a field, and that's working well, but when I try to combine with other field to get the data filtered by both fileds it shows nothing...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;pulldata("@layer", "getValue", "attributes.totalcount", concat(${URL}, '?outStatistics=[{"statisticType": "count","onStatisticField": "objectId","outStatisticFieldName": "totalcount"}]'), concat("lugar ='",'Casco Antiguo',"' and fecha_de_la_Recogida ='",${fecha_de_la_Recogida},"'"))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ok, I just managed to see that the URL for the first field was in the general table (/0) and the last one in the repeat (/1), so I made another line:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;pulldata("@layer", "getValue", "attributes.totalcount", concat(${URL2}, '?outStatistics=[{"statisticType": "count","onStatisticField": "objectId","outStatisticFieldName": "totalcount"}]'), concat("fecha_de_la_Recogida ='",${fecha_de_la_Recogida},"'"))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But even with this alone I cannot get any result &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone can help me to figure this out? Thanks in advance!!&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jul 2023 11:11:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-layer-seems-to-be-caching-results/m-p/1308417#M50651</guid>
      <dc:creator>DavidRedondo</dc:creator>
      <dc:date>2023-07-15T11:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: Pulldata @layer seems to be caching results</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-layer-seems-to-be-caching-results/m-p/1314973#M50998</link>
      <description>&lt;P&gt;any thoughts? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 09:32:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-layer-seems-to-be-caching-results/m-p/1314973#M50998</guid>
      <dc:creator>DavidRedondo</dc:creator>
      <dc:date>2023-08-03T09:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: Pulldata @layer seems to be caching results</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-layer-seems-to-be-caching-results/m-p/1323398#M51441</link>
      <description>&lt;P&gt;ideas? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 12:17:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-layer-seems-to-be-caching-results/m-p/1323398#M51441</guid>
      <dc:creator>DavidRedondo</dc:creator>
      <dc:date>2023-08-29T12:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Pulldata @layer seems to be caching results</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-layer-seems-to-be-caching-results/m-p/1623087#M62959</link>
      <description>&lt;P&gt;Great trick, this works well, instantaneously, and can be tested in Connect.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2025 15:38:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-layer-seems-to-be-caching-results/m-p/1623087#M62959</guid>
      <dc:creator>BrittanyBankovich1</dc:creator>
      <dc:date>2025-06-12T15:38:18Z</dc:date>
    </item>
  </channel>
</rss>

