<?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: When using FeatureSetByName how can I access layers in a group in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/when-using-featuresetbyname-how-can-i-access/m-p/1131574#M43667</link>
    <description>&lt;P&gt;I'd assume there's no Arcade community specifically because of how varied the different profiles are. That is, for certain Arcade expressions, they will &lt;EM&gt;only&lt;/EM&gt; be used in a Dashboard or Attribute Rule, etc., so it makes more sense to put those questions in their respective spaces. But it would be nice to have it as a tag available in all spaces where Arcade is relevant. Or really, just an Arcade community space with the different profiles as tags... I'll suggest it!&lt;/P&gt;&lt;P&gt;But to your question: is this a map image layer? How is it getting grouped like that?&lt;/P&gt;&lt;P&gt;Personally, I go with &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/95558"&gt;@AdminGIS2&lt;/a&gt; 's suggestion of using &lt;STRONG&gt;FeatureSetByPortalItem&lt;/STRONG&gt;, as it will function regardless of the map's configuration, and will even work without the layer being present in the map.&lt;/P&gt;</description>
    <pubDate>Fri, 07 Jan 2022 14:00:28 GMT</pubDate>
    <dc:creator>jcarlson</dc:creator>
    <dc:date>2022-01-07T14:00:28Z</dc:date>
    <item>
      <title>When using FeatureSetByName how can I access layers in a group</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/when-using-featuresetbyname-how-can-i-access/m-p/1131464#M43660</link>
      <description>&lt;P&gt;Tried all kinds of slashes and there is nothing about it in the help.&amp;nbsp;&amp;nbsp;FeatureSetByName cannot seem to find anything in a group.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DougBrowning_0-1641513040082.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/30957iCD174943DCD2DD76/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DougBrowning_0-1641513040082.png" alt="DougBrowning_0-1641513040082.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;var GraAllot = Intersects(FeatureSetByName($map,"Grazing Allotment Polygons", ["ALLOT_NAME"], false),$feature);&lt;BR /&gt;return First(GraAllot).ALLOT_NAME&lt;/P&gt;&lt;P&gt;If I take it out of the group it all works fine.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/arcade/function-reference/data_functions/#featuresetbyname" target="_blank"&gt;https://developers.arcgis.com/arcade/function-reference/data_functions/#featuresetbyname&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also why is there no Arcade community?&amp;nbsp; Or can I just not find it.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 23:53:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/when-using-featuresetbyname-how-can-i-access/m-p/1131464#M43660</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2022-01-06T23:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: When using FeatureSetByName how can I access layers in a group</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/when-using-featuresetbyname-how-can-i-access/m-p/1131559#M43663</link>
      <description>&lt;P&gt;You could try to use one of the other featureset functions, &lt;SPAN&gt;&lt;A href="https://developers.arcgis.com/arcade/function-reference/data_functions/#featuresetbyid" target="_self"&gt;FeatureSetById&lt;/A&gt; or &lt;A href="https://developers.arcgis.com/arcade/function-reference/data_functions/#featuresetbyportalitem" target="_self"&gt;FeatureSetByPortalItem&lt;/A&gt;?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 12:38:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/when-using-featuresetbyname-how-can-i-access/m-p/1131559#M43663</guid>
      <dc:creator>AdminGIS2</dc:creator>
      <dc:date>2022-01-07T12:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: When using FeatureSetByName how can I access layers in a group</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/when-using-featuresetbyname-how-can-i-access/m-p/1131574#M43667</link>
      <description>&lt;P&gt;I'd assume there's no Arcade community specifically because of how varied the different profiles are. That is, for certain Arcade expressions, they will &lt;EM&gt;only&lt;/EM&gt; be used in a Dashboard or Attribute Rule, etc., so it makes more sense to put those questions in their respective spaces. But it would be nice to have it as a tag available in all spaces where Arcade is relevant. Or really, just an Arcade community space with the different profiles as tags... I'll suggest it!&lt;/P&gt;&lt;P&gt;But to your question: is this a map image layer? How is it getting grouped like that?&lt;/P&gt;&lt;P&gt;Personally, I go with &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/95558"&gt;@AdminGIS2&lt;/a&gt; 's suggestion of using &lt;STRONG&gt;FeatureSetByPortalItem&lt;/STRONG&gt;, as it will function regardless of the map's configuration, and will even work without the layer being present in the map.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 14:00:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/when-using-featuresetbyname-how-can-i-access/m-p/1131574#M43667</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-01-07T14:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: When using FeatureSetByName how can I access layers in a group</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/when-using-featuresetbyname-how-can-i-access/m-p/1131593#M43669</link>
      <description>&lt;P&gt;Thanks we are usually offline so needs to be in the map anyway.&amp;nbsp; I use by name a lot because I have to replicate the maps for 12 states.&amp;nbsp; By name I can just copy paste.&amp;nbsp; By ID would take me a lot longer.&lt;/P&gt;&lt;P&gt;This map I got from from a coworker - they just added in a rest service and it did that.&amp;nbsp; &amp;nbsp;I moved it up but was still curious how to do it.&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 14:37:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/when-using-featuresetbyname-how-can-i-access/m-p/1131593#M43669</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2022-01-07T14:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: When using FeatureSetByName how can I access layers in a group</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/when-using-featuresetbyname-how-can-i-access/m-p/1131594#M43670</link>
      <description>&lt;P&gt;I see. Yes, when you add a single layer from a Map Image service from its layer index url (.../MapServer/0), it treats it like a Feature Layer. Adding the whole Map Image service brings layers in as a grouped layer, which can't be interacted with in the same way.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 14:41:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/when-using-featuresetbyname-how-can-i-access/m-p/1131594#M43670</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-01-07T14:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: When using FeatureSetByName how can I access layers in a group</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/when-using-featuresetbyname-how-can-i-access/m-p/1131603#M43671</link>
      <description>&lt;P&gt;Yea or when you create groups in ArcMap before publish I think it creates groups.&amp;nbsp; I always wondered why Esri products never have much group support.&amp;nbsp; Even the new map viewer has groups for feature classes but not tables.&amp;nbsp; Like why not?&amp;nbsp; What advantage is there to not being able to have groups.&amp;nbsp; Plus putting the tables separate from FCs is just plain strange.&amp;nbsp; I have like 60 tables in some so there is no way I can ever move to the new map with no way to organize anything.&amp;nbsp; It seems like most javascript built maps out there have grouping.&lt;/P&gt;&lt;P&gt;My guess is that there is no way to access groups but maybe they will add it is my hope.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 15:04:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/when-using-featuresetbyname-how-can-i-access/m-p/1131603#M43671</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2022-01-07T15:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: When using FeatureSetByName how can I access layers in a group</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/when-using-featuresetbyname-how-can-i-access/m-p/1214425#M47978</link>
      <description>&lt;P&gt;Wow!&amp;nbsp; Glad I checked here first.&amp;nbsp; I was thinking of migrating to the new map viewer for the grouping of layers.&amp;nbsp; However&amp;nbsp;&lt;STRONG&gt;FeatureSetByName&lt;/STRONG&gt; is used in the arcade expressions.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;Staying in classic&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 22:37:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/when-using-featuresetbyname-how-can-i-access/m-p/1214425#M47978</guid>
      <dc:creator>RyanBohan</dc:creator>
      <dc:date>2022-09-20T22:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: When using FeatureSetByName how can I access layers in a group</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/when-using-featuresetbyname-how-can-i-access/m-p/1253766#M50076</link>
      <description>&lt;P&gt;Is it possible to reference a sublayer using FeatureSetByPortalItem? I keep getting a&amp;nbsp;&lt;EM&gt;Portal Item not found&lt;/EM&gt; error every time I try to reference this feature service in an arcade calculate expression.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SHartholt_0-1675257852236.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/61817i96BFD31BE1F306AE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SHartholt_0-1675257852236.png" alt="SHartholt_0-1675257852236.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 13:25:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/when-using-featuresetbyname-how-can-i-access/m-p/1253766#M50076</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2023-02-01T13:25:12Z</dc:date>
    </item>
  </channel>
</rss>

