<?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: Attribute Rule, Cannot retrieve attachments in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-cannot-retrieve-attachments/m-p/1598305#M94267</link>
    <description>&lt;P&gt;The AttachmentsCreated feature service webhook fires reliably, &lt;STRONG&gt;but&lt;/STRONG&gt; I discovered Editor Tracking on the SDE geodatabase attachment table has to be enabled in order for the&amp;nbsp;attachments:{adds:[]} JSON object returned from /extractChanges to be populated with the attachment info.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;But ONLY in an online workflow.&lt;/STRONG&gt; If the field maps app is used offline, then the feature (with attachment) is synced, the webhook fires, but attachments:{adds:[]} is empty.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone else experience this? We're using&amp;nbsp;ArcGIS Enterprise 11.4&lt;/P&gt;</description>
    <pubDate>Sat, 22 Mar 2025 14:26:30 GMT</pubDate>
    <dc:creator>danbecker</dc:creator>
    <dc:date>2025-03-22T14:26:30Z</dc:date>
    <item>
      <title>Attribute Rule, Cannot retrieve attachments</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-cannot-retrieve-attachments/m-p/1596713#M94116</link>
      <description>&lt;P&gt;Why can't I retrieve any attachments when using an attribute rule, Insert trigger on a layer that has attachments enabled?&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is an Enterprise Geodatabase that's published to Enterprise 11.4 as a referenced feature service.&lt;/P&gt;&lt;P&gt;Both methods below fail to retrieve the attachment on the photo_point layer.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Count(Attachments($feature))
//always reports 0

var sql = Concatenate(["(rel_globalid = '",$feature.globalid,"')"]);
var photoTableFeatSet = Filter(FeatureSetByName($datastore,'dbname.dbo.photo_point__ATTACH',['rel_globalid','att_name'],false),sql);
Count(photoTableFeatSet)
//always reports 0&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I even setup a feature service webhook on photo_point layer, listening for 'AttachmentsCreated', which successfully fires a powerAutomate flow.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, inside the flow, calling /extractChanges, with the below query params&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
  "token": "validToken",
  "dataFormat": "json",
  "layers": "[5]",
  "returnAttachments": "true",
  "returnAttachmentsDataByUrl": "true",
  "f": "json",
  "serverGens": "1742307850054,1742307850055"
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then the returned change "attachments" value always is this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;"attachments": {
                    "adds": [],
                    "updates": [],
                    "deleteIds": []
                }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what is happening?&amp;nbsp;&lt;/P&gt;&lt;P&gt;All I want to do is retrieve attachments on a feature that is inserted into a layer. Either by attribute rule or feature service webhook, I don't care!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2025 18:17:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-cannot-retrieve-attachments/m-p/1596713#M94116</guid>
      <dc:creator>danbecker</dc:creator>
      <dc:date>2025-03-18T18:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Rule, Cannot retrieve attachments</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-cannot-retrieve-attachments/m-p/1598305#M94267</link>
      <description>&lt;P&gt;The AttachmentsCreated feature service webhook fires reliably, &lt;STRONG&gt;but&lt;/STRONG&gt; I discovered Editor Tracking on the SDE geodatabase attachment table has to be enabled in order for the&amp;nbsp;attachments:{adds:[]} JSON object returned from /extractChanges to be populated with the attachment info.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;But ONLY in an online workflow.&lt;/STRONG&gt; If the field maps app is used offline, then the feature (with attachment) is synced, the webhook fires, but attachments:{adds:[]} is empty.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone else experience this? We're using&amp;nbsp;ArcGIS Enterprise 11.4&lt;/P&gt;</description>
      <pubDate>Sat, 22 Mar 2025 14:26:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-cannot-retrieve-attachments/m-p/1598305#M94267</guid>
      <dc:creator>danbecker</dc:creator>
      <dc:date>2025-03-22T14:26:30Z</dc:date>
    </item>
  </channel>
</rss>

