<?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 download all the photos only of the selected surveys and not all surveys. in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-download-all-the-photos-only-of-the/m-p/699676#M33</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The script that I am currently using is the one recommended by survey123, the arcpy code is below. When I use ArcMap to pull the images from the geodatabase then I still pull all the images from all the records and not just the one selected originally.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;from arcpy import da&lt;/P&gt;&lt;P&gt;import os&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;inTable = arcpy.GetParameterAsText(0)&lt;/P&gt;&lt;P&gt;fileLocation = arcpy.GetParameterAsText(1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with da.SearchCursor(inTable, ) as cursor:&lt;/P&gt;&lt;P&gt;    for item in cursor:&lt;/P&gt;&lt;P&gt;        attachment = item[0]&lt;/P&gt;&lt;P&gt;        filenum = "ATT" + str(item[2]) + "_"&lt;/P&gt;&lt;P&gt;        filename = filenum + str(item[1])&lt;/P&gt;&lt;P&gt;        open(fileLocation + os.sep + filename, 'wb').write(attachment.tobytes())&lt;/P&gt;&lt;P&gt;        del item&lt;/P&gt;&lt;P&gt;        del filenum&lt;/P&gt;&lt;P&gt;        del filename&lt;/P&gt;&lt;P&gt;        del attachment&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Jan 2019 22:06:13 GMT</pubDate>
    <dc:creator>ChristopherVan_de_Wyngard</dc:creator>
    <dc:date>2019-01-15T22:06:13Z</dc:date>
    <item>
      <title>How to download all the photos only of the selected surveys and not all surveys.</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-download-all-the-photos-only-of-the/m-p/699672#M29</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When a record is selected I have tried to do a File Geodatabase export and it downloads all the records not just one or two being selected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2019 16:53:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-download-all-the-photos-only-of-the/m-p/699672#M29</guid>
      <dc:creator>ChristopherVan_de_Wyngard</dc:creator>
      <dc:date>2019-01-11T16:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to download all the photos only of the selected surveys and not all surveys.</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-download-all-the-photos-only-of-the/m-p/699673#M30</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christopher,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you using the method highlighted in the screenshot below?&amp;nbsp; I just tested by selecting once record and exporting, which worked as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/433086_selected_fgdbexport.JPG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2019 21:00:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-download-all-the-photos-only-of-the/m-p/699673#M30</guid>
      <dc:creator>BrandonArmstrong</dc:creator>
      <dc:date>2019-01-11T21:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to download all the photos only of the selected surveys and not all surveys.</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-download-all-the-photos-only-of-the/m-p/699674#M31</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brandon,&lt;/P&gt;&lt;P&gt;I verified that I was using the method as highlighted in the screenshot and when I download a File Geodatabase it downloads all the images from all records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My method is to make sure that the “Selected records only” is selected, that only one record is selected, and then I click download “File Geodatabase”. Then I run the ArcMap script to get photos and it pulls all the photos for all records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2019 17:40:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-download-all-the-photos-only-of-the/m-p/699674#M31</guid>
      <dc:creator>ChristopherVan_de_Wyngard</dc:creator>
      <dc:date>2019-01-15T17:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to download all the photos only of the selected surveys and not all surveys.</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-download-all-the-photos-only-of-the/m-p/699675#M32</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, when you add the feature class from the exported file geodatabase to ArcMap, records other than those that were selected are present?&amp;nbsp; Which ArcMap script are you referring too?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Brandon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2019 22:00:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-download-all-the-photos-only-of-the/m-p/699675#M32</guid>
      <dc:creator>BrandonArmstrong</dc:creator>
      <dc:date>2019-01-15T22:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to download all the photos only of the selected surveys and not all surveys.</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-download-all-the-photos-only-of-the/m-p/699676#M33</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The script that I am currently using is the one recommended by survey123, the arcpy code is below. When I use ArcMap to pull the images from the geodatabase then I still pull all the images from all the records and not just the one selected originally.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;from arcpy import da&lt;/P&gt;&lt;P&gt;import os&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;inTable = arcpy.GetParameterAsText(0)&lt;/P&gt;&lt;P&gt;fileLocation = arcpy.GetParameterAsText(1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with da.SearchCursor(inTable, ) as cursor:&lt;/P&gt;&lt;P&gt;    for item in cursor:&lt;/P&gt;&lt;P&gt;        attachment = item[0]&lt;/P&gt;&lt;P&gt;        filenum = "ATT" + str(item[2]) + "_"&lt;/P&gt;&lt;P&gt;        filename = filenum + str(item[1])&lt;/P&gt;&lt;P&gt;        open(fileLocation + os.sep + filename, 'wb').write(attachment.tobytes())&lt;/P&gt;&lt;P&gt;        del item&lt;/P&gt;&lt;P&gt;        del filenum&lt;/P&gt;&lt;P&gt;        del filename&lt;/P&gt;&lt;P&gt;        del attachment&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2019 22:06:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-download-all-the-photos-only-of-the/m-p/699676#M33</guid>
      <dc:creator>ChristopherVan_de_Wyngard</dc:creator>
      <dc:date>2019-01-15T22:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to download all the photos only of the selected surveys and not all surveys.</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-download-all-the-photos-only-of-the/m-p/699677#M34</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for clarifying, Chris.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As it turns out,&amp;nbsp;the selection of records on the parent layer in the Survey123 website does not currently correspond to the the related table storing the attachments. This is why the exported related table contains all attachments within the related table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We do have an open issue for this functionality and&amp;nbsp;we are looking to include it in a future release of the Survey123 website.&amp;nbsp;I have added your comments to the issue and will update you when this changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Brandon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2019 00:33:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-download-all-the-photos-only-of-the/m-p/699677#M34</guid>
      <dc:creator>BrandonArmstrong</dc:creator>
      <dc:date>2019-01-16T00:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to download all the photos only of the selected surveys and not all surveys.</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-download-all-the-photos-only-of-the/m-p/699678#M35</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Brandon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I look forward for the future release of the Survey123.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2019 00:37:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-download-all-the-photos-only-of-the/m-p/699678#M35</guid>
      <dc:creator>ChristopherVan_de_Wyngard</dc:creator>
      <dc:date>2019-01-16T00:37:25Z</dc:date>
    </item>
  </channel>
</rss>

