<?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 Using FeatureSetByName() $map identifier not recognized in Arcade expressions in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/using-featuresetbyname-map-identifier-not/m-p/1587152#M63704</link>
    <description>&lt;P&gt;I have an arcade expression that updates a field for polylines based on what points it intersects on another layer. I use&amp;nbsp;FeatureSetByName() to find the only other layer on the map. This works in ArcGIS Pro if I use $datastore as the Feature Set Collection (first parameter).&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/arcade/function-reference/featureset_functions/#featuresetbyname" target="_self"&gt;According to the documentation&lt;/A&gt;, I should be able to use &lt;EM&gt;$map&lt;/EM&gt; or &lt;EM&gt;$datastore&lt;/EM&gt; depending on the situation. When I try to run the same expression on the webmap, &lt;EM&gt;$datastore&lt;/EM&gt; returns an empty string since the Feature Set Collection is null. This is expected since the layers are not part of the same Feature Service.&lt;/P&gt;&lt;P&gt;However, &lt;EM&gt;$map&lt;/EM&gt; does not exist in the editor and if I type it in anyway, I get the error 'Identifier not recognized.' This is what happens trying to do a field calculation.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JasonBennett_0-1739992925987.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/125825iE6956F8FDCE65F72/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JasonBennett_0-1739992925987.png" alt="JasonBennett_0-1739992925987.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Does &lt;EM&gt;$map&lt;/EM&gt; no longer exist? I thought it would work to find other layers on the same map. Is there another way to achieve the same result?&lt;/P&gt;</description>
    <pubDate>Wed, 19 Feb 2025 19:31:00 GMT</pubDate>
    <dc:creator>JasonBennett</dc:creator>
    <dc:date>2025-02-19T19:31:00Z</dc:date>
    <item>
      <title>Using FeatureSetByName() $map identifier not recognized in Arcade expressions</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/using-featuresetbyname-map-identifier-not/m-p/1587152#M63704</link>
      <description>&lt;P&gt;I have an arcade expression that updates a field for polylines based on what points it intersects on another layer. I use&amp;nbsp;FeatureSetByName() to find the only other layer on the map. This works in ArcGIS Pro if I use $datastore as the Feature Set Collection (first parameter).&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/arcade/function-reference/featureset_functions/#featuresetbyname" target="_self"&gt;According to the documentation&lt;/A&gt;, I should be able to use &lt;EM&gt;$map&lt;/EM&gt; or &lt;EM&gt;$datastore&lt;/EM&gt; depending on the situation. When I try to run the same expression on the webmap, &lt;EM&gt;$datastore&lt;/EM&gt; returns an empty string since the Feature Set Collection is null. This is expected since the layers are not part of the same Feature Service.&lt;/P&gt;&lt;P&gt;However, &lt;EM&gt;$map&lt;/EM&gt; does not exist in the editor and if I type it in anyway, I get the error 'Identifier not recognized.' This is what happens trying to do a field calculation.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JasonBennett_0-1739992925987.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/125825iE6956F8FDCE65F72/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JasonBennett_0-1739992925987.png" alt="JasonBennett_0-1739992925987.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Does &lt;EM&gt;$map&lt;/EM&gt; no longer exist? I thought it would work to find other layers on the same map. Is there another way to achieve the same result?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2025 19:31:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/using-featuresetbyname-map-identifier-not/m-p/1587152#M63704</guid>
      <dc:creator>JasonBennett</dc:creator>
      <dc:date>2025-02-19T19:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using FeatureSetByName() $map identifier not recognized in Arcade expressions</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/using-featuresetbyname-map-identifier-not/m-p/1587162#M63705</link>
      <description>&lt;P&gt;It appears you are inside of using an Arcade profile that does not support the "$map" global. This reference is only applicable inside of Map Viewer as far as I am aware. What application are you trying to use this in?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2025 19:38:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/using-featuresetbyname-map-identifier-not/m-p/1587162#M63705</guid>
      <dc:creator>AustinAverill</dc:creator>
      <dc:date>2025-02-19T19:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: Using FeatureSetByName() $map identifier not recognized in Arcade expressions</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/using-featuresetbyname-map-identifier-not/m-p/1587166#M63706</link>
      <description>&lt;P&gt;You have to look at the &lt;A href="https://developers.arcgis.com/arcade/profiles/" target="_self"&gt;Arcade profiles&lt;/A&gt; to see what variables are available in different circumstances. For the &lt;A href="https://developers.arcgis.com/arcade/profiles/field-calculation/" target="_self"&gt;Field calculation profile&lt;/A&gt;, only $feature and $datastore are available. $map is available in other profiles, like &lt;A href="https://developers.arcgis.com/arcade/profiles/popup/" target="_self"&gt;popup&lt;/A&gt; or &lt;A href="https://developers.arcgis.com/arcade/profiles/popup-element/" target="_self"&gt;popup element&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2025 19:41:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/using-featuresetbyname-map-identifier-not/m-p/1587166#M63706</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2025-02-19T19:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using FeatureSetByName() $map identifier not recognized in Arcade expressions</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/using-featuresetbyname-map-identifier-not/m-p/1587232#M63709</link>
      <description>&lt;P&gt;It is a Field Calculation on Web Viewer, but according to&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2839"&gt;@KenBuja&lt;/a&gt;, this is the Field Calculation profile.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2025 21:12:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/using-featuresetbyname-map-identifier-not/m-p/1587232#M63709</guid>
      <dc:creator>JasonBennett</dc:creator>
      <dc:date>2025-02-19T21:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: Using FeatureSetByName() $map identifier not recognized in Arcade expressions</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/using-featuresetbyname-map-identifier-not/m-p/1587235#M63710</link>
      <description>&lt;P&gt;Thanks for pointing me to Arcade Profiles, Ken. I did not know there were so many. I think it is part of the popup profile but this script works on Forms. Since the goal is to update automatically as Field Maps users make changes, I think I'm heading in the right direction.&lt;/P&gt;&lt;P&gt;Thanks for the help!&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2025 21:17:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/using-featuresetbyname-map-identifier-not/m-p/1587235#M63710</guid>
      <dc:creator>JasonBennett</dc:creator>
      <dc:date>2025-02-19T21:17:29Z</dc:date>
    </item>
  </channel>
</rss>

