AnsweredAssumed Answered

Scripting Picture Exports from Survey123 Feature Class

Question asked by rachael_hurd on May 12, 2017
Latest reply on Oct 15, 2019 by WILLIAM51

I am a SUPER newbie to the python side of the ArcGIS stuff so I was wondering if anyone could help me out with how to modify the script here: How To: Batch export attachments from a feature class 


In order to match the attachment based on its rel_globalid back to the globalid in the feature class and return an associated attribute ie 'site name'


I found this great article over here: arcpy - Export Attachments for Arcgis Collector - Naming - Geographic Information Systems Stack Exchange 


Which seems to indicate it is possible to pull a field value from another table based on the key field between the two in python.


So the feature class would have the following fields:



(survey info, etc.)


The attachment table has:





And in the end I would like the script to ask for 


   Attachment Table 

   Output Location

   Feature Class (Surveys)


And the output files to be:






I feel like I am pretty close but I am totally new to python so I am hoping someone here can help me tune up the scripting!