<?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: How to iterate through Survey123 responses for specific names, find missing names, and send missing names via email? in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-iterate-through-survey123-responses-for/m-p/843578#M21518</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! I will give the Python method a go.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Nov 2019 19:37:29 GMT</pubDate>
    <dc:creator>NDFAdmin</dc:creator>
    <dc:date>2019-11-13T19:37:29Z</dc:date>
    <item>
      <title>How to iterate through Survey123 responses for specific names, find missing names, and send missing names via email?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-iterate-through-survey123-responses-for/m-p/843575#M21515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been trying to figure out the best way using Integromat, to iterate through a series of survey submissions for a specific day (by noon each day), find names missing from the submissions, and then email those missing names to a supervisor. I've played with a number of options, including using filters but keep coming up short.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would also be of interest to be able to iterate through a set of responses, find names that are missing and then notify those missing people via email.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone tried to do this or know of a method?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Aaron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2019 23:38:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-iterate-through-survey123-responses-for/m-p/843575#M21515</guid>
      <dc:creator>NDFAdmin</dc:creator>
      <dc:date>2019-11-07T23:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to iterate through Survey123 responses for specific names, find missing names, and send missing names via email?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-iterate-through-survey123-responses-for/m-p/843576#M21516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aaron,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This concerns less Survey123 than simply accessing the feature service (as is done in&amp;nbsp;&lt;A _jive_internal="true" href="https://community.esri.com/groups/survey123/blog/2018/01/22/a-simple-e-mail-notification-system-for-survey123-for-arcgis-v2"&gt;A simple e-mail notification system for Survey123 for ArcGIS v2&lt;/A&gt;&amp;nbsp;); it may also be a bit more straightforward to do in python than a webhook framework. &amp;nbsp;I would query the feature service, asking for the count of features grouped by submitter name for the time period (see&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/rest/services-reference/query-feature-service-layer-.htm" title="https://developers.arcgis.com/rest/services-reference/query-feature-service-layer-.htm"&gt;Query (Feature Service/Layer)—ArcGIS REST API: Services Directory | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;, particularly using the returnDistinctValues option with your submitter field as the only entry in outFields). The comparison is fairly straightforward in Python; in a webhook context, you would probably need to use an iterator object to do the check along with an Array.contains function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2019 21:17:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-iterate-through-survey123-responses-for/m-p/843576#M21516</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2019-11-12T21:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to iterate through Survey123 responses for specific names, find missing names, and send missing names via email?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-iterate-through-survey123-responses-for/m-p/843577#M21517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is exactly how we do our QA.&amp;nbsp; I have a Python script that hits the HFS directly.&amp;nbsp; Brings all the data down into a search cursor.&amp;nbsp; Then it does a bunch of checks and creates a csv file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code is something like this&lt;/P&gt;&lt;P&gt;endURL = "/query?f=json&amp;amp;where=1=1&amp;amp;outFields=*&amp;amp;returnGeometry=true"&lt;/P&gt;&lt;P&gt;#item_id_to_query = r'9cffbbee279f43b0af9a9ef65ddfe3237'&lt;/P&gt;&lt;P&gt;plotsURL = "/" + "0" + endURL&lt;/P&gt;&lt;P&gt;response = s.post(url+"/content/items/{}?f=json".format(item_id_to_query))&lt;BR /&gt;fs_endpoint = response.json().get('url')&lt;/P&gt;&lt;P&gt;# plots&lt;BR /&gt;q_response = s.get(fs_endpoint + plotsURL)&lt;BR /&gt;plotsF = arcpy.FeatureSet()&lt;BR /&gt;plotsF.load(q_response.url)&lt;/P&gt;&lt;P&gt;plotKeys = []&lt;BR /&gt;# get a list of Eval PlotKeys from Plots&lt;BR /&gt;whereClause = "EvalStatus = 'Eval'"&lt;BR /&gt;with arcpy.da.SearchCursor(plotsF,"PlotKey", whereClause) as cursor:&lt;BR /&gt; for row in cursor:&lt;BR /&gt; plotKeys.append(row[0])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2019 22:50:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-iterate-through-survey123-responses-for/m-p/843577#M21517</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2019-11-12T22:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to iterate through Survey123 responses for specific names, find missing names, and send missing names via email?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-iterate-through-survey123-responses-for/m-p/843578#M21518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! I will give the Python method a go.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2019 19:37:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-iterate-through-survey123-responses-for/m-p/843578#M21518</guid>
      <dc:creator>NDFAdmin</dc:creator>
      <dc:date>2019-11-13T19:37:29Z</dc:date>
    </item>
  </channel>
</rss>

