<?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: Create a list with a data expression that creates a buffer of an existing feature in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/create-a-list-with-a-data-expression-that-creates/m-p/1699980#M11916</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/431239"&gt;@GIS_utahDEM&lt;/a&gt;&amp;nbsp;Do you still have the code that ended up working? I'd love to see it.&lt;/P&gt;</description>
    <pubDate>Mon, 04 May 2026 23:37:40 GMT</pubDate>
    <dc:creator>HollyTorpey_LSA</dc:creator>
    <dc:date>2026-05-04T23:37:40Z</dc:date>
    <item>
      <title>Create a list with a data expression that creates a buffer of an existing feature</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/create-a-list-with-a-data-expression-that-creates/m-p/1495027#M9828</link>
      <description>&lt;P&gt;Hello! I am trying to create a data expression to populate a list in dashboards that reflects all the features of an existing featureset, but with a specific buffer around them. Mainly, I'm just not sure where in feature's attributes I can access/change the geometry and I'm having a hard time finding documentation about it. I currently have it on line 27 in the code below -- but I'm honestly not sure if that is where it would go OR if that would be the correct key to use.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var agol = portal('https://www.arcgis.com')
var layer = FeatureSetByPortalItem(agol,'0ca544f09ff94130b2685fbcbb7f89f1');

var recalc = {
  'fields': [{'name':'Name', 'type':'esriFieldTypeString'},
  {'name':'objectid','type':'esriFieldTypeOID'},
  {'name':'globalid','type':'esriFieldTypeGlobalID'},
  {'name':'Type','type':'esriFieldTypeString'},
  {'name':'Status','type':'esriFieldTypeString'},
  {'name':'Date','type':'esriFieldTypeDate'},
 // {'name':'search_date','type':'esriFieldTypeDate'}
  ],
  'geometryType': '',
  'features': []
}


for (var a in layer) {
  var new_a = {'attributes':{
    'Name':a.Name,
    'objectid':a.OBJECTID,
    'globalid':a.GLOBALID,
    'Type':a.Type,
    'Status':a.Status,
    'Date':a.Date,
  },
  geometry:Buffer(Geometry(a),50,'miles')
  }
    Push(recalc.features, new_a)
}

return FeatureSet(Text(recalc))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;When I "Run" it, I get a table with the appropriate attributes, but no shape field&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 19 Jun 2024 18:22:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/create-a-list-with-a-data-expression-that-creates/m-p/1495027#M9828</guid>
      <dc:creator>GIS_utahDEM</dc:creator>
      <dc:date>2024-06-19T18:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: Create a list with a data expression that creates a buffer of an existing feature</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/create-a-list-with-a-data-expression-that-creates/m-p/1495084#M9829</link>
      <description>&lt;P&gt;Well -- I solved my own problem and it actually does work for filtering and such on the map...but I'll keep it here in case someone else wants to see how I did it!&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2024 20:00:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/create-a-list-with-a-data-expression-that-creates/m-p/1495084#M9829</guid>
      <dc:creator>GIS_utahDEM</dc:creator>
      <dc:date>2024-06-19T20:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: Create a list with a data expression that creates a buffer of an existing feature</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/create-a-list-with-a-data-expression-that-creates/m-p/1699980#M11916</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/431239"&gt;@GIS_utahDEM&lt;/a&gt;&amp;nbsp;Do you still have the code that ended up working? I'd love to see it.&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2026 23:37:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/create-a-list-with-a-data-expression-that-creates/m-p/1699980#M11916</guid>
      <dc:creator>HollyTorpey_LSA</dc:creator>
      <dc:date>2026-05-04T23:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Create a list with a data expression that creates a buffer of an existing feature</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/create-a-list-with-a-data-expression-that-creates/m-p/1702161#M11924</link>
      <description>&lt;P&gt;The data expression ended up taking a really long time and frequently failed, so instead I have a hosted notebook that runs on a schedule to just create/update a separate buffer layer that has been added to the map and dashboard. You can see the code I used for the buffer creation here:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/julia-surkis/SituationalAwareness/blob/main/IncidentPointsToBuffer.ipynb" target="_blank"&gt;https://github.com/julia-surkis/SituationalAwareness/blob/main/IncidentPointsToBuffer.ipynb&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2026 18:56:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/create-a-list-with-a-data-expression-that-creates/m-p/1702161#M11924</guid>
      <dc:creator>GIS_utahDEM</dc:creator>
      <dc:date>2026-05-14T18:56:11Z</dc:date>
    </item>
  </channel>
</rss>

