<?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: Arcade FeatureSetByName limitations? in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/arcade-featuresetbyname-limitations/m-p/129152#M813</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is not correct. You can work with map services, but to have full functionality you will need to add each layer separately. Take a look at the sample service of the USA:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer" title="https://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer"&gt;USA (MapServer)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is a Map Service with 4 layer:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/503098_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you add the service to AGOL using the URL "&lt;A class="link-bare" href="https://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer" title="https://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer"&gt;https://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer&lt;/A&gt;&amp;nbsp;" it will be added as a group layer and functionality will be limited to only the attributes of the current feature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you add then individually adding "/0" for the Cities and "/3" for the Counties, you can use Arcade normally to extract the county name for the city like this:&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;First&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Intersects&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;$feature&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;FeatureSetByName&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;$map&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"USA - Counties"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;name&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which will appear in the pop-up:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/503111_pastedImage_4.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Aug 2020 02:28:36 GMT</pubDate>
    <dc:creator>XanderBakker</dc:creator>
    <dc:date>2020-08-12T02:28:36Z</dc:date>
    <item>
      <title>Arcade FeatureSetByName limitations?</title>
      <link>https://community.esri.com/t5/developers-questions/arcade-featuresetbyname-limitations/m-p/129151#M812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it correct when using&amp;nbsp;FeatureSetByName the layer must be in a featureservice (not a map service) and must be the only layer in the service?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2020 08:26:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcade-featuresetbyname-limitations/m-p/129151#M812</guid>
      <dc:creator>leonoestergaard</dc:creator>
      <dc:date>2020-08-11T08:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade FeatureSetByName limitations?</title>
      <link>https://community.esri.com/t5/developers-questions/arcade-featuresetbyname-limitations/m-p/129152#M813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is not correct. You can work with map services, but to have full functionality you will need to add each layer separately. Take a look at the sample service of the USA:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer" title="https://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer"&gt;USA (MapServer)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is a Map Service with 4 layer:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/503098_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you add the service to AGOL using the URL "&lt;A class="link-bare" href="https://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer" title="https://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer"&gt;https://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer&lt;/A&gt;&amp;nbsp;" it will be added as a group layer and functionality will be limited to only the attributes of the current feature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you add then individually adding "/0" for the Cities and "/3" for the Counties, you can use Arcade normally to extract the county name for the city like this:&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;First&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Intersects&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;$feature&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;FeatureSetByName&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;$map&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"USA - Counties"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;name&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which will appear in the pop-up:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/503111_pastedImage_4.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2020 02:28:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcade-featuresetbyname-limitations/m-p/129152#M813</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2020-08-12T02:28:36Z</dc:date>
    </item>
  </channel>
</rss>

