<?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: data driven image naming in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/data-driven-image-naming/m-p/1228031#M45809</link>
    <description>&lt;P&gt;This was implemented a few months ago:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-survey123-ideas/implemented-set-default-photo-name-in-survey123/idi-p/930756/page/3#comments" target="_blank"&gt;https://community.esri.com/t5/arcgis-survey123-ideas/implemented-set-default-photo-name-in-survey123/idi-p/930756/page/3#comments&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Just wanted to update this post as it seems like the pages with the new feature don't come up first when searching.&lt;/P&gt;</description>
    <pubDate>Wed, 02 Nov 2022 18:43:37 GMT</pubDate>
    <dc:creator>LMedeirosUI</dc:creator>
    <dc:date>2022-11-02T18:43:37Z</dc:date>
    <item>
      <title>data driven image naming</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/data-driven-image-naming/m-p/822020#M16040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a pretty basic survey where the person goes to park 'ABCD' location '123' and takes four photos.&amp;nbsp; Is there a way to use the Park ID and Location ID fields to name the photo.&amp;nbsp; For example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;ABCD_123_photo1.jpg,&amp;nbsp;&lt;/P&gt;&lt;P&gt;ABCD_123_photo2.jpg,&amp;nbsp;&lt;/P&gt;&lt;P&gt;ABCD_123_photo3.jpg,&amp;nbsp;&lt;/P&gt;&lt;P&gt;ABCD_123_photo4.jpg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am getting now is a filename such as&amp;nbsp;ATT1_LocatorImage1-20191220-175037.jpg which isn't going to be of much use to me.&amp;nbsp; From my preliminary search of older user questions, this has been a requested feature for several years.&amp;nbsp; Is it available now?&amp;nbsp; Is there a way to cross reference&amp;nbsp;tabular data to the file name at least?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Dec 2019 21:12:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/data-driven-image-naming/m-p/822020#M16040</guid>
      <dc:creator>MichaelParrish1</dc:creator>
      <dc:date>2019-12-30T21:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: data driven image naming</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/data-driven-image-naming/m-p/822021#M16041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have an existing enhacement request for this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;ENH-000119299&amp;nbsp;&lt;SPAN&gt;Allow Survey123 for ArcGIS to rename the name of the collected photos based on an answer of a question or using calculation automatically instead of manually changing the name of the photos while uploading.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;&lt;SPAN&gt;There is no timeframe yet for implementing this enhancement request.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;&lt;SPAN&gt;I encourage you to contact Esri Support and our Support team will assign an official enhancement number for your records. Similar requests from other customers can then be attached to the same enhancement request, which helps us assess demand for the enhancement and prioritize it accordingly.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Dec 2019 21:59:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/data-driven-image-naming/m-p/822021#M16041</guid>
      <dc:creator>Shwu-jingJeng</dc:creator>
      <dc:date>2019-12-30T21:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: data driven image naming</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/data-driven-image-naming/m-p/822022#M16042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can rename them all using a calculated field from the form when exporting in a Python script.&amp;nbsp; Not sure if that will help you but I have the code for it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I do now is just export them to a directory with the Plot name.&amp;nbsp; Then we have a URL or UNC path name in the feature class attributes instead.&amp;nbsp; Keeping them all in the GDB or SDE got too big rather quickly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess you could export, rename and reimport but not much fun.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Dec 2019 21:03:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/data-driven-image-naming/m-p/822022#M16042</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2019-12-31T21:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: data driven image naming</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/data-driven-image-naming/m-p/822023#M16043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Doug,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there's a script you would be willing to share for how to rename images from form fields, I would be interested in seeing how to do that. I am still running a manual process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;I collect a point for each survey but I assume this same logic can be applied to tabular survey results. I join my gdb&amp;nbsp;point layer field "GLOBALID" to gbd ATTACH table field "&lt;SPAN&gt;REL_&lt;/SPAN&gt;GLOBALID" . This gives me a record&amp;nbsp;for each picture along with all&amp;nbsp;of my survey attributes. I export that out to a csv file and use a program called Advanced Renamer to batch rename&amp;nbsp;the jpg files using those added survey fields. Renamer matches the jpg file to a csv field, "Name" below, and renames the file using another field "New_Name".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Joined arcmap fields and original jpg exports from survey gdb&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/477458_Capture2.JPG" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;csv file with original jpg file names and new naming convention fields&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;IMG alt="" class="jive-emoji jive-image image-2 j-img-original" src="https://community.esri.com/legacyfs/online/477459_Capture3.JPG" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jan 2020 16:52:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/data-driven-image-naming/m-p/822023#M16043</guid>
      <dc:creator>AdamDaily</dc:creator>
      <dc:date>2020-01-06T16:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: data driven image naming</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/data-driven-image-naming/m-p/822024#M16044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the suggested workaround.&amp;nbsp; I'll give it a shot soon.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jan 2020 19:49:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/data-driven-image-naming/m-p/822024#M16044</guid>
      <dc:creator>MichaelParrish1</dc:creator>
      <dc:date>2020-01-06T19:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: data driven image naming</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/data-driven-image-naming/m-p/822025#M16045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure here you go.&amp;nbsp; It does 1,700 files in 376 folders in less than 5 minutes.&amp;nbsp; Note mine is a little more complicated since I need to do some joins to get some info.&amp;nbsp; I also create the dir storage structure on the fly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The main part is just to&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pull out the attachment&lt;/P&gt;&lt;P&gt;with arcpy.da.SearchCursor("attachView", fieldList) as cursor:&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;for row in cursor:&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;binaryRep = row[0]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then save it out with a diff name&lt;BR /&gt;open(baseOut + os.sep + fileName, 'wb').write(binaryRep.tobytes())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;#-------------------------------------------------------------------------------&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# Name:        Survey123 Export Photos to File System 2019.py&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;#-------------------------------------------------------------------------------&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; os&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; arcpy

&lt;SPAN class="comment token"&gt;# vars--------------------&lt;/SPAN&gt;
inDB &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;"\\path\Exported.gdb"&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# to get the names and PrimaryKey (I have 9 forms in my GDB)&lt;/SPAN&gt;
photoForm &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Photos"&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# actual attachements table&lt;/SPAN&gt;
attachName &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Photos__ATTACH"&lt;/SPAN&gt;

outDir &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;"\\yourpath\Photos"&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# should be standard&lt;/SPAN&gt;
fldBLOB &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'DATA'&lt;/SPAN&gt;
fldAttName &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'ATT_NAME'&lt;/SPAN&gt;

dateLoadedInDb &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"2019-09-01"&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# vars--------------------&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# join to Photos form to get the PrimaryKey and state info&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# Note the first year they called it PlotKey instead&lt;/SPAN&gt;
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;MakeTableView_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;inDB &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"\\"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; attachName&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"attachView"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;AddJoin_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"attachView"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"REL_GLOBALID"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; inDB &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"\\"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; photoForm&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"globalid"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# funky due to the join&lt;/SPAN&gt;
fieldList &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;attachName &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"."&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; fldBLOB&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; attachName &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"."&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; fldAttName&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; photoForm &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;".PlotKey"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; photoForm &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;".Office"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; photoForm &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;".filename_T1"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; photoForm &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;".filename_T2"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; photoForm &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;".filename_T3"&lt;/SPAN&gt; \
            &lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;photoForm &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;".filename_Soil"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; photoForm &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;".MiscPhoto1filename"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; photoForm &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;".MiscPhoto2filename"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; photoForm &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;".MiscPhoto3filename"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; photoForm &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;".MiscPhoto4filename"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; photoForm &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;".MiscPhoto5filename"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;with&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;da&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SearchCursor&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"attachView"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; fieldList&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; cursor&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
   &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; row &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; cursor&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
      binaryRep &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; row&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;

      &lt;SPAN class="comment token"&gt;# save to disk&lt;/SPAN&gt;
      &lt;SPAN class="comment token"&gt;# build output path of base + State + PrimaryKey (PlotKey + DateLoadedInDb)&lt;/SPAN&gt;
      &lt;SPAN class="comment token"&gt;# for now need to check for blank PlotKey and blank Office - which should be fixed already&lt;/SPAN&gt;
      &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; row&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;3&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; None &lt;SPAN class="operator token"&gt;or&lt;/SPAN&gt; row&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; None&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
        &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Warning Null values found in the Office or PlotKey field.  Skipping photo.  Must fix!!"&lt;/SPAN&gt;
        &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"   ATT_NAME is "&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; row&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
      &lt;SPAN class="keyword token"&gt;else&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
        baseOut &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; outDir &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"\\"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; row&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;3&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"\\"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; row&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; dateLoadedInDb
        &lt;SPAN class="comment token"&gt;# check to see if already PrimaryKey dir there - if not create it&lt;/SPAN&gt;
        &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;not&lt;/SPAN&gt; os&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;path&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;exists&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;baseOut&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
            os&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;makedirs&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;baseOut&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

        &lt;SPAN class="comment token"&gt;# Need to get the actual file name from the right field.  No real other way to do it with a SC so had to write it out&lt;/SPAN&gt;
        whichPhoto &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; row&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;split&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"-"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
        &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; whichPhoto &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"T1"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
            fileName &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; row&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;4&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;".jpg"&lt;/SPAN&gt;
        &lt;SPAN class="keyword token"&gt;elif&lt;/SPAN&gt; whichPhoto &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"T2"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
            fileName &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; row&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;5&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;".jpg"&lt;/SPAN&gt;
        &lt;SPAN class="keyword token"&gt;elif&lt;/SPAN&gt; whichPhoto &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"T3"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
            fileName &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; row&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;6&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;".jpg"&lt;/SPAN&gt;
        &lt;SPAN class="keyword token"&gt;elif&lt;/SPAN&gt; whichPhoto &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Soil"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
            fileName &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; row&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;7&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;".jpg"&lt;/SPAN&gt;
        &lt;SPAN class="keyword token"&gt;elif&lt;/SPAN&gt; whichPhoto &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"MiscPhoto1"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
            fileName &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; row&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;8&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;".jpg"&lt;/SPAN&gt;
        &lt;SPAN class="keyword token"&gt;elif&lt;/SPAN&gt; whichPhoto &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"MiscPhoto2"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
            fileName &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; row&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;9&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;".jpg"&lt;/SPAN&gt;
        &lt;SPAN class="keyword token"&gt;elif&lt;/SPAN&gt; whichPhoto &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"MiscPhoto3"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
            fileName &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; row&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;10&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;".jpg"&lt;/SPAN&gt;
        &lt;SPAN class="keyword token"&gt;elif&lt;/SPAN&gt; whichPhoto &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"MiscPhoto4"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
            fileName &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; row&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;11&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;".jpg"&lt;/SPAN&gt;
        &lt;SPAN class="keyword token"&gt;elif&lt;/SPAN&gt; whichPhoto &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"MiscPhoto5"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
            fileName &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; row&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;12&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;".jpg"&lt;/SPAN&gt;

        &lt;SPAN class="comment token"&gt;# in case some / got in there.  this should not happen now!&lt;/SPAN&gt;
        fileName &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; fileName&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;replace&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"/"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

        &lt;SPAN class="comment token"&gt;# save out the file&lt;/SPAN&gt;
        open&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;baseOut &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; os&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;sep &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; fileName&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'wb'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;write&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;binaryRep&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;tobytes&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;


&lt;SPAN class="keyword token"&gt;del&lt;/SPAN&gt; cursor‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:46:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/data-driven-image-naming/m-p/822025#M16045</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2021-12-12T09:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: data driven image naming</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/data-driven-image-naming/m-p/1169975#M42506</link>
      <description>&lt;P&gt;Dear Shwu-jingJeng&lt;/P&gt;&lt;P&gt;I was wondering if there have been any updates to the this initial request to create a the followign enhancement.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ENH-000119299&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Allow Survey123 for ArcGIS to rename the name of the collected photos based on an answer of a question or using calculation automatically instead of manually changing the name of the photos while uploading.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I do not have the python script abilities and hoped that there would be a simple format for allocating site names to images so that they can be collated appropriately.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any help would&amp;nbsp;be greatly appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best regards Jamie&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2022 23:48:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/data-driven-image-naming/m-p/1169975#M42506</guid>
      <dc:creator>JamieUrquhart</dc:creator>
      <dc:date>2022-05-02T23:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: data driven image naming</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/data-driven-image-naming/m-p/1228031#M45809</link>
      <description>&lt;P&gt;This was implemented a few months ago:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-survey123-ideas/implemented-set-default-photo-name-in-survey123/idi-p/930756/page/3#comments" target="_blank"&gt;https://community.esri.com/t5/arcgis-survey123-ideas/implemented-set-default-photo-name-in-survey123/idi-p/930756/page/3#comments&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Just wanted to update this post as it seems like the pages with the new feature don't come up first when searching.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 18:43:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/data-driven-image-naming/m-p/1228031#M45809</guid>
      <dc:creator>LMedeirosUI</dc:creator>
      <dc:date>2022-11-02T18:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: data driven image naming</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/data-driven-image-naming/m-p/1228034#M45811</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/225692"&gt;@JamieUrquhart&lt;/a&gt;&amp;nbsp;This idea has been implemented. See: &lt;A href="https://community.esri.com/t5/arcgis-survey123-blog/what-s-new-in-arcgis-survey123-june-2022/ba-p/1184420" target="_blank"&gt;https://community.esri.com/t5/arcgis-survey123-blog/what-s-new-in-arcgis-survey123-june-2022/ba-p/1184420&lt;/A&gt;&amp;nbsp;for more information.&lt;/P&gt;&lt;P&gt;I can never find the enhancement requests that&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/25180"&gt;@Shwu-jingJeng&lt;/a&gt;&amp;nbsp;posts, so thought I would link to the feature update as I had the same question.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 18:48:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/data-driven-image-naming/m-p/1228034#M45811</guid>
      <dc:creator>LMedeirosUI</dc:creator>
      <dc:date>2022-11-02T18:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: data driven image naming</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/data-driven-image-naming/m-p/1228036#M45812</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/25180"&gt;@Shwu-jingJeng&lt;/a&gt;&amp;nbsp;I cannot find this enhancement request, though the feature has been implemented (&lt;A href="https://community.esri.com/t5/arcgis-survey123-blog/what-s-new-in-arcgis-survey123-june-2022/ba-p/1184420" target="_blank"&gt;https://community.esri.com/t5/arcgis-survey123-blog/what-s-new-in-arcgis-survey123-june-2022/ba-p/1184420&lt;/A&gt;) under a different enhancement request (&lt;A href="https://community.esri.com/t5/arcgis-survey123-ideas/implemented-set-default-photo-name-in-survey123/idi-p/930756" target="_blank"&gt;https://community.esri.com/t5/arcgis-survey123-ideas/implemented-set-default-photo-name-in-survey123/idi-p/930756&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;Users use the information posted to try to find the enhancement requests and kudo it or second the request. Please link to requests rather than posting names - I have never been able to locate an enhancement request you mention. It could be that the titles of the posts get changed, but a link would solve that issue.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 18:51:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/data-driven-image-naming/m-p/1228036#M45812</guid>
      <dc:creator>LMedeirosUI</dc:creator>
      <dc:date>2022-11-02T18:51:12Z</dc:date>
    </item>
  </channel>
</rss>

