<?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: Show Attachment Count per Record in Dashboard List in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/show-attachment-count-per-record-in-dashboard-list/m-p/1581974#M10716</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/360655"&gt;@AndreasHall&lt;/a&gt;&amp;nbsp;- I've have an indicator to give me total attachments (see below), but I just need a list with a count for every feature/record.&amp;nbsp; I'm drawing a blank today...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var portal = Portal('https://------.maps.arcgis.com');
var assets = FeatureSetByPortalItem(
    portal,
    'item_id',
    0,
    ['*'],
    false
)

var photo_count = 0

for(var feat in assets){
  photo_count += Count(Attachments(feat))
}
return photo_count&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Feb 2025 20:25:28 GMT</pubDate>
    <dc:creator>JustinWolff</dc:creator>
    <dc:date>2025-02-04T20:25:28Z</dc:date>
    <item>
      <title>Show Attachment Count per Record in Dashboard List</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/show-attachment-count-per-record-in-dashboard-list/m-p/1581629#M10712</link>
      <description>&lt;P&gt;I've discovered the hard way that the Arcade function Count(Attachments($feature)) cannot be used in a Field Maps Calculated Expression to automatically update and return a count of the attachments, because the attachments can't be counted until the record is submitted.&amp;nbsp; Fine.&amp;nbsp; Is there a way to display the number of attachments per record in a Dashboard List?&amp;nbsp; I cannot figure out how to make this work.&amp;nbsp; I'm doing all of this in AGO using hosted data.&lt;/P&gt;&lt;P&gt;Any chance&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/363906"&gt;@jcarlson&lt;/a&gt;&amp;nbsp;has done something like this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 03:55:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/show-attachment-count-per-record-in-dashboard-list/m-p/1581629#M10712</guid>
      <dc:creator>JustinWolff</dc:creator>
      <dc:date>2025-02-04T03:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: Show Attachment Count per Record in Dashboard List</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/show-attachment-count-per-record-in-dashboard-list/m-p/1581652#M10713</link>
      <description>&lt;P&gt;I do not know exactly how but you could try to use arcade in the list element to count the number of attachments per record. Perhaps&amp;nbsp;&lt;SPAN&gt;Count(Attachments($feature)) will work?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 07:19:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/show-attachment-count-per-record-in-dashboard-list/m-p/1581652#M10713</guid>
      <dc:creator>AndreasHall</dc:creator>
      <dc:date>2025-02-04T07:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: Show Attachment Count per Record in Dashboard List</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/show-attachment-count-per-record-in-dashboard-list/m-p/1581974#M10716</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/360655"&gt;@AndreasHall&lt;/a&gt;&amp;nbsp;- I've have an indicator to give me total attachments (see below), but I just need a list with a count for every feature/record.&amp;nbsp; I'm drawing a blank today...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var portal = Portal('https://------.maps.arcgis.com');
var assets = FeatureSetByPortalItem(
    portal,
    'item_id',
    0,
    ['*'],
    false
)

var photo_count = 0

for(var feat in assets){
  photo_count += Count(Attachments(feat))
}
return photo_count&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 20:25:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/show-attachment-count-per-record-in-dashboard-list/m-p/1581974#M10716</guid>
      <dc:creator>JustinWolff</dc:creator>
      <dc:date>2025-02-04T20:25:28Z</dc:date>
    </item>
  </channel>
</rss>

