<?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: EXPORT ATTACHMENTS ArcTOOL in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/export-attachments-arctool-per-file-type/m-p/1607052#M95072</link>
    <description>&lt;P&gt;Appreciate the feedback. Yes, sounds like you understand exactly what I am trying to do.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Want to be able to write a series of scripts/models to export key attachments and organize into different folders for achieves. If I can figure out how to select certain file types, will save tons of hours of manually organizing the different files. In the future, I can run a batch file that will run the scripts to run a monthly data download, organization, sorting and achieving of field pictures and Survey PDF reports.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just need this added step to progress with my design.&lt;/P&gt;</description>
    <pubDate>Thu, 17 Apr 2025 18:47:07 GMT</pubDate>
    <dc:creator>ModernElectric</dc:creator>
    <dc:date>2025-04-17T18:47:07Z</dc:date>
    <item>
      <title>EXPORT ATTACHMENTS ArcTOOL per FILE TYPE</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/export-attachments-arctool-per-file-type/m-p/1607006#M95067</link>
      <description>&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Apr 2025 18:48:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/export-attachments-arctool-per-file-type/m-p/1607006#M95067</guid>
      <dc:creator>ModernElectric</dc:creator>
      <dc:date>2025-04-17T18:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: EXPORT ATTACHMENTS ArcTOOL</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/export-attachments-arctool-per-file-type/m-p/1607037#M95069</link>
      <description>&lt;P&gt;According to the tool documentation, it honors selections. Would you be able to pre-select all the records based on attachment type, and then use the tool? I haven't personally tried that before, but that's the first thought I had.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Apr 2025 18:11:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/export-attachments-arctool-per-file-type/m-p/1607037#M95069</guid>
      <dc:creator>RyanUthoff</dc:creator>
      <dc:date>2025-04-17T18:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: EXPORT ATTACHMENTS ArcTOOL</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/export-attachments-arctool-per-file-type/m-p/1607043#M95070</link>
      <description>&lt;P&gt;Yes, the tool does allow for selection using the Select Layer by Attributes. I am using ArcGIS Pro, first building a model to select the records from a Hosted Feature Layer (ie, date range) and then using the Export Attachments tool.&lt;/P&gt;&lt;P&gt;However, unsure how I select the specific attachment type by file type, .JPEG or .PDF that are attached to the selected feature.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want to do is select all the .JPEG images and export those to a specific achieve folder on our network and do a separate export of .PDF attachments and export those to a different separate folder.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Apr 2025 18:21:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/export-attachments-arctool-per-file-type/m-p/1607043#M95070</guid>
      <dc:creator>ModernElectric</dc:creator>
      <dc:date>2025-04-17T18:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: EXPORT ATTACHMENTS ArcTOOL</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/export-attachments-arctool-per-file-type/m-p/1607050#M95071</link>
      <description>&lt;P&gt;Well, I was thinking if there was any sort of standardization in the records where you can tell based off of something in the record of what file type it is, you could only select those records and export them. For example, if records that only have a specific attribute "A" are only associated with PDFs, then select all "A" records and export them. But, I totally realize that's probably not feasible. It's more of a long shot idea.&lt;/P&gt;&lt;P&gt;From what it sounds like, you have a single record with multiple file attachment types and want to filter out the attachments that way. Unfortunately in that case, I'm not aware of a way to do that.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Apr 2025 18:39:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/export-attachments-arctool-per-file-type/m-p/1607050#M95071</guid>
      <dc:creator>RyanUthoff</dc:creator>
      <dc:date>2025-04-17T18:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: EXPORT ATTACHMENTS ArcTOOL</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/export-attachments-arctool-per-file-type/m-p/1607052#M95072</link>
      <description>&lt;P&gt;Appreciate the feedback. Yes, sounds like you understand exactly what I am trying to do.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Want to be able to write a series of scripts/models to export key attachments and organize into different folders for achieves. If I can figure out how to select certain file types, will save tons of hours of manually organizing the different files. In the future, I can run a batch file that will run the scripts to run a monthly data download, organization, sorting and achieving of field pictures and Survey PDF reports.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just need this added step to progress with my design.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Apr 2025 18:47:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/export-attachments-arctool-per-file-type/m-p/1607052#M95072</guid>
      <dc:creator>ModernElectric</dc:creator>
      <dc:date>2025-04-17T18:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: EXPORT ATTACHMENTS ArcTOOL per FILE TYPE</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/export-attachments-arctool-per-file-type/m-p/1607060#M95073</link>
      <description>&lt;P&gt;If you can't filter up front, filter out back. Here's a sample that will remove all non-PDF/JPEG attachments from the folder you downloaded them to:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import os
out_dir = r"C:\path\to\folder\with\attachments"
extensions = [".pdf", ".jpeg", ".jpg"]
for root, _, files in os.walk(out_dir):
    for f in files:
        if not any(f.lower().endswith(e) for e in extensions):
            os.remove(os.path.join(root, f))&lt;/LI-CODE&gt;&lt;P&gt;Feel free to tweak that third line to match your desired results.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Apr 2025 18:57:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/export-attachments-arctool-per-file-type/m-p/1607060#M95073</guid>
      <dc:creator>DavidSolari</dc:creator>
      <dc:date>2025-04-17T18:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: EXPORT ATTACHMENTS ArcTOOL</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/export-attachments-arctool-per-file-type/m-p/1607062#M95075</link>
      <description>&lt;P&gt;I don't like this approach, but what you could do is download/export the&amp;nbsp;&lt;EM&gt;entire&amp;nbsp;&lt;/EM&gt;hosted feature service as a FGDB which will give you access to the underlying attachment table. From there, you can filter based on file type in the attachment table. It's certainly not ideal, but it's something. What we really need is query access to the underlying attachment table in AGOL. But without that, I think the options are limited to be able to do anything directly within AGOL.&lt;/P&gt;&lt;P&gt;Edit: I just re-read your original question and saw that you already did this. Sorry! But I'll leave it here in case anyone else comes across this question and finds this comment useful.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Apr 2025 19:25:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/export-attachments-arctool-per-file-type/m-p/1607062#M95075</guid>
      <dc:creator>RyanUthoff</dc:creator>
      <dc:date>2025-04-17T19:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: EXPORT ATTACHMENTS ArcTOOL per FILE TYPE</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/export-attachments-arctool-per-file-type/m-p/1607073#M95077</link>
      <description>&lt;P&gt;I think with some Python scripting you should be able to do this - CAVEAT - I have not tested this script as I don't have a feature class with attachments.&amp;nbsp; Let me know how it goes.&lt;/P&gt;&lt;P&gt;import arcpy&lt;BR /&gt;import os&lt;/P&gt;&lt;P&gt;# Set paths&lt;BR /&gt;input_fc = r"C:\Path\To\Your\FeatureClass" # Feature class with attachments&lt;BR /&gt;output_folder = r"C:\Path\To\ExportedAttachments"&lt;/P&gt;&lt;P&gt;# Make sure output folder exists&lt;BR /&gt;if not os.path.exists(output_folder):&lt;BR /&gt;os.makedirs(output_folder)&lt;/P&gt;&lt;P&gt;# Get the name of the attachment table&lt;BR /&gt;desc = arcpy.Describe(input_fc)&lt;BR /&gt;attachment_table = desc.AttachmentTableName&lt;/P&gt;&lt;P&gt;# Check if the feature class has attachments&lt;BR /&gt;if not desc.HasAttachments:&lt;BR /&gt;raise Exception("This feature class does not have attachments.")&lt;/P&gt;&lt;P&gt;# Create a list of desired file types&lt;BR /&gt;valid_extensions = ['.pdf', '.tif', '.tiff', '.docx']&lt;/P&gt;&lt;P&gt;# Create a temporary table view of the attachment table&lt;BR /&gt;arcpy.management.MakeTableView(attachment_table, "attachment_view")&lt;/P&gt;&lt;P&gt;# Loop through each extension type and export attachments&lt;BR /&gt;for ext in valid_extensions:&lt;BR /&gt;# Build SQL query for this file type&lt;BR /&gt;where_clause = f"UPPER(NAME) LIKE '%.{ext.strip('.').upper()}'"&lt;/P&gt;&lt;P&gt;# Export matching attachments&lt;BR /&gt;arcpy.management.ExportAttachments(&lt;BR /&gt;input_fc,&lt;BR /&gt;"attachment_view",&lt;BR /&gt;output_folder,&lt;BR /&gt;"REL_GLOBALID", # Match field&lt;BR /&gt;"ATT_NAME",&lt;BR /&gt;"DATA",&lt;BR /&gt;where_clause&lt;BR /&gt;)&lt;BR /&gt;print(f"Exported all {ext.upper()} files.")&lt;/P&gt;&lt;P&gt;print("Done exporting attachments.")&lt;/P&gt;</description>
      <pubDate>Thu, 17 Apr 2025 19:19:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/export-attachments-arctool-per-file-type/m-p/1607073#M95077</guid>
      <dc:creator>Robert_LeClair</dc:creator>
      <dc:date>2025-04-17T19:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: EXPORT ATTACHMENTS ArcTOOL per FILE TYPE</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/export-attachments-arctool-per-file-type/m-p/1607074#M95078</link>
      <description>&lt;P&gt;This is a fantastic idea unless you read the entire first sentence in the OP, then it's useless for this case.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Apr 2025 19:23:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/export-attachments-arctool-per-file-type/m-p/1607074#M95078</guid>
      <dc:creator>DavidSolari</dc:creator>
      <dc:date>2025-04-17T19:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: EXPORT ATTACHMENTS ArcTOOL per FILE TYPE</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/export-attachments-arctool-per-file-type/m-p/1607082#M95079</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/4413"&gt;@DavidSolari&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2538"&gt;@Robert_LeClair&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for both suggestions, big big help. I am in the process of doing some experimentation and will see what works. Will publish my results once I get it figured out.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Apr 2025 19:31:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/export-attachments-arctool-per-file-type/m-p/1607082#M95079</guid>
      <dc:creator>ModernElectric</dc:creator>
      <dc:date>2025-04-17T19:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: EXPORT ATTACHMENTS ArcTOOL per FILE TYPE</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/export-attachments-arctool-per-file-type/m-p/1616060#M95869</link>
      <description>&lt;P&gt;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 &lt;A href="https://www.esri.com/arcgis-blog/products/arcgis-pro/data-management/create-your-own-geoprocessing-tool-to-download-attachments" target="_self"&gt;blog&lt;/A&gt; 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!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 May 2025 15:40:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/export-attachments-arctool-per-file-type/m-p/1616060#M95869</guid>
      <dc:creator>MikeJensen</dc:creator>
      <dc:date>2025-05-19T15:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: EXPORT ATTACHMENTS ArcTOOL per FILE TYPE</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/export-attachments-arctool-per-file-type/m-p/1616132#M95875</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/955"&gt;@MikeJensen&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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?&lt;/P&gt;</description>
      <pubDate>Mon, 19 May 2025 18:08:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/export-attachments-arctool-per-file-type/m-p/1616132#M95875</guid>
      <dc:creator>ModernElectric</dc:creator>
      <dc:date>2025-05-19T18:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: EXPORT ATTACHMENTS ArcTOOL per FILE TYPE</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/export-attachments-arctool-per-file-type/m-p/1691936#M102460</link>
      <description>&lt;P&gt;Yes, the plan is that the export can occur with both feature classes and a hosted feature layer in a feature service. Stay tuned!&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2026 14:13:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/export-attachments-arctool-per-file-type/m-p/1691936#M102460</guid>
      <dc:creator>MikeJensen</dc:creator>
      <dc:date>2026-03-23T14:13:44Z</dc:date>
    </item>
  </channel>
</rss>

