<?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: Syncing AGOL Attachments with DB in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/syncing-agol-attachments-with-db/m-p/1561554#M45483</link>
    <description>&lt;P&gt;For this, I use arcpy.append with Maintain Attachments = True.&lt;/P&gt;&lt;P&gt;R_&lt;/P&gt;</description>
    <pubDate>Thu, 21 Nov 2024 23:42:49 GMT</pubDate>
    <dc:creator>RhettZufelt</dc:creator>
    <dc:date>2024-11-21T23:42:49Z</dc:date>
    <item>
      <title>Syncing AGOL Attachments with DB</title>
      <link>https://community.esri.com/t5/data-management-questions/syncing-agol-attachments-with-db/m-p/1550515#M45428</link>
      <description>&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;I've found the need to sync an AGOL hosted feature layer with attachments to our local DB. I've pull the FGDB and loaded it onto the DB, and created a Python script using the ArcGIS API for Python, to sync the points and features, but I'm now lost for how I would bring the attachments over. I've found the documentation on how to actually access these through the API for Python, but I haven't found how to get these over.&lt;/P&gt;&lt;P&gt;I'm using SQL Server 2019, newest ArcGIS Pro, and I have access to ArcPy.&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;Cody&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2024 16:10:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/syncing-agol-attachments-with-db/m-p/1550515#M45428</guid>
      <dc:creator>CodyPatterson</dc:creator>
      <dc:date>2024-10-21T16:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: Syncing AGOL Attachments with DB</title>
      <link>https://community.esri.com/t5/data-management-questions/syncing-agol-attachments-with-db/m-p/1550613#M45433</link>
      <description>&lt;P&gt;Broadly speaking, you'll probably need to use the API to "download" the attachments into memory in a script, and then use&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/add-attachments.htm" target="_blank" rel="noopener"&gt;Add Attachments&lt;/A&gt;&amp;nbsp;to add them to the Feature Class in the DB.&lt;/P&gt;&lt;P&gt;If you need specific help, let me know, but I'm a little rusty on the API.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2024 20:14:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/syncing-agol-attachments-with-db/m-p/1550613#M45433</guid>
      <dc:creator>MErikReedAugusta</dc:creator>
      <dc:date>2024-10-21T20:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: Syncing AGOL Attachments with DB</title>
      <link>https://community.esri.com/t5/data-management-questions/syncing-agol-attachments-with-db/m-p/1550629#M45434</link>
      <description>&lt;P&gt;There are also&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/an-overview-of-the-attachments-toolset.htm" target="_blank" rel="noopener"&gt; geoprocessing tools&lt;/A&gt; that allow you to bulk export and add attachments, these tools do respect selected features (even when run standalone) so you'll use layers to manage which attachments to export.&lt;/P&gt;
&lt;P&gt;You can also do this using the ArcGIS API for Python to individual download and add attachments between the two environments.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2024 20:28:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/syncing-agol-attachments-with-db/m-p/1550629#M45434</guid>
      <dc:creator>RobertKrisher</dc:creator>
      <dc:date>2024-10-21T20:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Syncing AGOL Attachments with DB</title>
      <link>https://community.esri.com/t5/data-management-questions/syncing-agol-attachments-with-db/m-p/1561554#M45483</link>
      <description>&lt;P&gt;For this, I use arcpy.append with Maintain Attachments = True.&lt;/P&gt;&lt;P&gt;R_&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 23:42:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/syncing-agol-attachments-with-db/m-p/1561554#M45483</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2024-11-21T23:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: Syncing AGOL Attachments with DB</title>
      <link>https://community.esri.com/t5/data-management-questions/syncing-agol-attachments-with-db/m-p/1565023#M45508</link>
      <description>&lt;P&gt;If you take the portal item layer url.&lt;/P&gt;&lt;P&gt;login to the portal and set it as active portal in pro.&lt;/P&gt;&lt;P&gt;bring in the layer using the item id.&lt;/P&gt;&lt;P&gt;export the features, enabling the environments (Maintain Attachments, and Preserve Global IDs) as below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AndresCastillo_0-1733385113975.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/120926i5F881D0F8B18E54A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AndresCastillo_0-1733385113975.jpeg" alt="AndresCastillo_0-1733385113975.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The export will create the relationship class with all the needed pictures assigned to the respective records.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AndresCastillo_1-1733385240535.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/120927i87E8FC9AEBA2DA2C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AndresCastillo_1-1733385240535.png" alt="AndresCastillo_1-1733385240535.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AndresCastillo_2-1733385327880.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/120928i8B2A90B810BAA522/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AndresCastillo_2-1733385327880.png" alt="AndresCastillo_2-1733385327880.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2024 07:55:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/syncing-agol-attachments-with-db/m-p/1565023#M45508</guid>
      <dc:creator>AndresCastillo</dc:creator>
      <dc:date>2024-12-05T07:55:36Z</dc:date>
    </item>
  </channel>
</rss>

