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 Exch...
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:
globalid
site_name
(survey info, etc.)
The attachment table has:
rel_globalid
att_name
data
And in the end I would like the script to ask for
Parameters
Attachment Table
Output Location
Feature Class (Surveys)
And the output files to be:
(site_name)_(att_name)_ATT1
(site_name)_(att_name)_ATT2
(site_name)_(att_name)_ATT3
etc.
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!
Bumping this because we need something similar at my organization.
Bumping too.