Batch management of PDFs in an online Feature Layer

336
1
09-12-2022 12:12 PM
Labels (1)
drewcole232
New Contributor III

I am taking over an App where PDFs are attached to points in a feature layer.  Some PDFs, I believe mostly older ones,  cannot be accessed directly through an internet browser, they must be downloaded which is not ideal, especially since this map is available to the public.

I have tested by downloading, saving and then re-attaching a specific image to its related record and it opens successfully. So I know what probably needs to be done (all PDFs must be saved under the most current version), but I have no idea how to start. I'm sure a script will eventually be needed. Any ideas on what the first step would be? Will exporting data in any of the formats below lead me in the right direction? I already tried FGDB but gave up after a few minutes. Since it was taking so long, it leads me to believe that it could be attempting to export attachments. No idea. Trying again now. 

Any advice is much appreciated. Thank you. 

drewcole232_0-1663009671212.png

drewcole232_1-1663009865230.png

 

 

0 Kudos
1 Reply
jcarlson
MVP Esteemed Contributor

If you go the scripting route, you'll probably want to get to know the Attachment Manager: https://developers.arcgis.com/python/api-reference/arcgis.features.managers.html#attachmentmanager

For uploading and downloading attachments, it's the way to go. The middle portion of converting your files, however, I don't know as much.

- Josh Carlson
Kendall County GIS