<?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 Attachments arcade function not working with enterprise services in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/attachments-arcade-function-not-working-with/m-p/1225987#M48593</link>
    <description>&lt;P&gt;Hi. I'm finding that the 'Attachments' arcade function does not work with enterprise map or feature services (that is on prem ArcGIS server service). AGOL Map viewer - the popup profile. It does seem to work for a hosted feature service. Is this expected or is there a bug?&lt;/P&gt;&lt;P&gt;As a simple test, I have the following arcade expression&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;if (Count(Attachments($feature)) &amp;gt; 0) {
    return 'ID: ' + Text(First(Attachments($feature)).ID);
} else {
    return 'No attachments';
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is what I'm seeing in the popup&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZorbaConlen1_2-1666825510718.png" style="width: 348px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/54551i15615B187991F2DC/image-dimensions/348x272?v=v2" width="348" height="272" role="button" title="ZorbaConlen1_2-1666825510718.png" alt="ZorbaConlen1_2-1666825510718.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Clearly, there are 2 attachments for this feature, so it should return the id of the first one based on my expression.&lt;/P&gt;&lt;P&gt;Anyone run into this?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 27 Oct 2022 00:35:44 GMT</pubDate>
    <dc:creator>ZorbaConlen1</dc:creator>
    <dc:date>2022-10-27T00:35:44Z</dc:date>
    <item>
      <title>Attachments arcade function not working with enterprise services</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/attachments-arcade-function-not-working-with/m-p/1225987#M48593</link>
      <description>&lt;P&gt;Hi. I'm finding that the 'Attachments' arcade function does not work with enterprise map or feature services (that is on prem ArcGIS server service). AGOL Map viewer - the popup profile. It does seem to work for a hosted feature service. Is this expected or is there a bug?&lt;/P&gt;&lt;P&gt;As a simple test, I have the following arcade expression&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;if (Count(Attachments($feature)) &amp;gt; 0) {
    return 'ID: ' + Text(First(Attachments($feature)).ID);
} else {
    return 'No attachments';
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is what I'm seeing in the popup&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZorbaConlen1_2-1666825510718.png" style="width: 348px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/54551i15615B187991F2DC/image-dimensions/348x272?v=v2" width="348" height="272" role="button" title="ZorbaConlen1_2-1666825510718.png" alt="ZorbaConlen1_2-1666825510718.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Clearly, there are 2 attachments for this feature, so it should return the id of the first one based on my expression.&lt;/P&gt;&lt;P&gt;Anyone run into this?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 00:35:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/attachments-arcade-function-not-working-with/m-p/1225987#M48593</guid>
      <dc:creator>ZorbaConlen1</dc:creator>
      <dc:date>2022-10-27T00:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: Attachments arcade function not working with enterprise services</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/attachments-arcade-function-not-working-with/m-p/1287812#M52078</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/277034"&gt;@DavidNyenhuis1&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/486533"&gt;@ZoeyZhang&lt;/a&gt; is the attachments function not available in Enterprise?&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 16:54:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/attachments-arcade-function-not-working-with/m-p/1287812#M52078</guid>
      <dc:creator>JohnWatson_EBA</dc:creator>
      <dc:date>2023-05-10T16:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: Attachments arcade function not working with enterprise services</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/attachments-arcade-function-not-working-with/m-p/1288382#M52130</link>
      <description>&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;I'm not familiar with the specifics on Arcade functions in Enterprise for the popup profile. But, in testing it, it appears not to be listed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidNyenhuis1_0-1683838403686.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/70479i001CD2A74BF3DAEC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DavidNyenhuis1_0-1683838403686.png" alt="DavidNyenhuis1_0-1683838403686.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 20:54:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/attachments-arcade-function-not-working-with/m-p/1288382#M52130</guid>
      <dc:creator>DavidNyenhuis1</dc:creator>
      <dc:date>2023-05-11T20:54:08Z</dc:date>
    </item>
  </channel>
</rss>

