Select to view content in your preferred language

EXPORT ATTACHMENTS ArcTOOL per FILE TYPE

1235
11
04-17-2025 10:25 AM
Labels (1)
ModernElectric
Frequent Contributor

I found the answer I was looking for previously on mass downloading and organizing attachments from an AGOL Hosted Feature Layer. I am using the Export Attachment geoprocessing tool and it works great.

However, there are a number of different types of attachments, PDFs, images, etc that I have on a variety of different hosted feature layers used in Workforce and Survey123.

Is there a way within the tool, or another tool, to choose which file type I want selected and exported, IE .JPEG versus .PDF? This would help on the export and organization workflow I am building.

0 Kudos
11 Replies
MikeJensen
Esri Contributor

This is a great idea for the Export Attachments tool! I have added this idea to future updates for the tool in a later release. In the meantime, the sample tool to download attachments in this blog has an update to the tool that will allow the user to check a box to export to a specific file type. For example, if you only want to download your .pdf attachments, then check the box and enter .pdf in the text field. The caveat to this updated tool is that it only works with feature classes and tables that have been enabled and have attachments. It does not support feature services. Feature services would have be downloaded to a file geodatabase first, then the new updated tool could download the desired attachments. Stay tuned as we work to implement these ideas in upcoming releases! 

ModernElectric
Frequent Contributor

@MikeJensen 

Appreciate the feedback. Yes, I learned that the Hosted Feature Layer needs to be downloaded to a local GDB first, for it to work. I've built a Python script that does just that. After the new release, I will update my scripts. Is it possible that release will include the ability to download the attachments straight from a Hosted Feature Layer?

0 Kudos