<?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: How do I reference a layer in my TOC in an Arcade Expression in Pro for symbology in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/how-do-i-reference-a-layer-in-my-toc-in-an-arcade/m-p/1127815#M49237</link>
    <description>&lt;P&gt;The short answer: you don't!&lt;/P&gt;&lt;P&gt;Arcade has &lt;A href="https://developers.arcgis.com/arcade/guide/profiles/" target="_blank"&gt;a number of different profiles&lt;/A&gt;, each with different capabilities. The symbology profile in particular does not allow accessing other layers, either in the datastore or the map.&lt;/P&gt;</description>
    <pubDate>Mon, 20 Dec 2021 22:05:35 GMT</pubDate>
    <dc:creator>jcarlson</dc:creator>
    <dc:date>2021-12-20T22:05:35Z</dc:date>
    <item>
      <title>How do I reference a layer in my TOC in an Arcade Expression in Pro for symbology</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-do-i-reference-a-layer-in-my-toc-in-an-arcade/m-p/1127800#M49233</link>
      <description>&lt;P&gt;The Arcade expression below works in ArcGIS Online.&amp;nbsp; How do I get the Arcade expression to work in ArcGIS Pro before publishing my map service map to be used in ArcGIS API for JavaScript?&amp;nbsp; I get an error saying "Invalid expression.&amp;nbsp; Error on line 2.&amp;nbsp; Object not found $map)."&amp;nbsp; I also tried $datastore instead of $map.&amp;nbsp; When I use $datastore, do I need to list the entire path to the feature class?&lt;/P&gt;&lt;P&gt;I am trying to find the max RatingDate for each RoadID, so the symbology displays the PSC for the most current rating date.&lt;/P&gt;&lt;P&gt;var currentFeatureRoadID = $feature.RoadID&lt;BR /&gt;var featuresSurfCond = FeatureSetByName($map,'Surface Condition', ['RoadID', 'RatingDate', 'PSC'], true);&lt;BR /&gt;var featuresSurfCondFilter = Filter(featuresSurfCond, 'RoadID = @currentFeatureRoadID')&lt;BR /&gt;var maxRatingDate = max(featuresSurfCondFilter, 'RatingDate')&lt;BR /&gt;if ($feature.RatingDate == maxRatingDate) {&lt;BR /&gt;return $feature.PSC&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 21:43:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-do-i-reference-a-layer-in-my-toc-in-an-arcade/m-p/1127800#M49233</guid>
      <dc:creator>LoriEmerson_McCormack</dc:creator>
      <dc:date>2021-12-20T21:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: How do I reference a layer in my TOC in an Arcade Expression in Pro for symbology</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-do-i-reference-a-layer-in-my-toc-in-an-arcade/m-p/1127815#M49237</link>
      <description>&lt;P&gt;The short answer: you don't!&lt;/P&gt;&lt;P&gt;Arcade has &lt;A href="https://developers.arcgis.com/arcade/guide/profiles/" target="_blank"&gt;a number of different profiles&lt;/A&gt;, each with different capabilities. The symbology profile in particular does not allow accessing other layers, either in the datastore or the map.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 22:05:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-do-i-reference-a-layer-in-my-toc-in-an-arcade/m-p/1127815#M49237</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-12-20T22:05:35Z</dc:date>
    </item>
  </channel>
</rss>

