<?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: Can Arcade pop-up expressions use a map service not in the web map? in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/can-arcade-pop-up-expressions-use-a-map-service/m-p/1252502#M50006</link>
    <description>&lt;P&gt;You can use &lt;A href="https://developers.arcgis.com/arcade/function-reference/featureset_functions/#featuresetbyid:~:text=return%20devicesCount%3B-,FeatureSetById,-FeatureSetById(featureSetCollection%2C%20id" target="_self"&gt;FeatureSetByID&lt;/A&gt; or &lt;A href="https://developers.arcgis.com/arcade/function-reference/featureset_functions/#featuresetbyname:~:text=Count(%20features%20)%3B-,FeatureSetByName,-FeatureSetByName(featureSetCollection%2C%20title" target="_self"&gt;FeatureSetByName&lt;/A&gt;&amp;nbsp;or&amp;nbsp;&lt;A href="https://developers.arcgis.com/arcade/function-reference/portal_functions/#:~:text=from%20a%20portal.-,FeatureSetByPortalItem,-FeatureSetByPortalItem(portalObject%2C%20itemId" target="_self"&gt;FeatureSetByPortalItem&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The links I include all have Esri's examples. I'd recommend FeatureSetByPortalItem, which calls the item ID in the item url. The others probably have to use $datastore... not as familiar with that way.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I usually set it to a variable first, then just include the variable in your &lt;A href="https://developers.arcgis.com/arcade/function-reference/geometry_functions/#intersects" target="_self"&gt;intersect script&lt;/A&gt;. The tip is in the FeatureSet call, make sure to enter the layer number from the item url and to only enter in the attributes you'd like to display in that specific expression in the brackets []. [*] notates pulling all the variables. If you're trying to come up with a "new" attribute, build the expression under Attribute Expression in the popup builder. If you're looking to do a custom chart or something, use Arcade under the options of content types to add in the popup.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 27 Jan 2023 20:05:56 GMT</pubDate>
    <dc:creator>Teresa_Blader</dc:creator>
    <dc:date>2023-01-27T20:05:56Z</dc:date>
    <item>
      <title>Can Arcade pop-up expressions use a map service not in the web map?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/can-arcade-pop-up-expressions-use-a-map-service/m-p/1252493#M50005</link>
      <description>&lt;P&gt;I was wondering if it's possible to create a pop-up Arcade expression that uses the Intersects function for a feature service &lt;U&gt;not&lt;/U&gt; in the current web map in ArcGIS Online? If so, how is that feature service accessed? I would think it&amp;nbsp;would be something to do with FeatureSetById.....Any help would be appreciated!!&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 19:47:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/can-arcade-pop-up-expressions-use-a-map-service/m-p/1252493#M50005</guid>
      <dc:creator>JeannetteByrd</dc:creator>
      <dc:date>2023-01-27T19:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: Can Arcade pop-up expressions use a map service not in the web map?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/can-arcade-pop-up-expressions-use-a-map-service/m-p/1252502#M50006</link>
      <description>&lt;P&gt;You can use &lt;A href="https://developers.arcgis.com/arcade/function-reference/featureset_functions/#featuresetbyid:~:text=return%20devicesCount%3B-,FeatureSetById,-FeatureSetById(featureSetCollection%2C%20id" target="_self"&gt;FeatureSetByID&lt;/A&gt; or &lt;A href="https://developers.arcgis.com/arcade/function-reference/featureset_functions/#featuresetbyname:~:text=Count(%20features%20)%3B-,FeatureSetByName,-FeatureSetByName(featureSetCollection%2C%20title" target="_self"&gt;FeatureSetByName&lt;/A&gt;&amp;nbsp;or&amp;nbsp;&lt;A href="https://developers.arcgis.com/arcade/function-reference/portal_functions/#:~:text=from%20a%20portal.-,FeatureSetByPortalItem,-FeatureSetByPortalItem(portalObject%2C%20itemId" target="_self"&gt;FeatureSetByPortalItem&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The links I include all have Esri's examples. I'd recommend FeatureSetByPortalItem, which calls the item ID in the item url. The others probably have to use $datastore... not as familiar with that way.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I usually set it to a variable first, then just include the variable in your &lt;A href="https://developers.arcgis.com/arcade/function-reference/geometry_functions/#intersects" target="_self"&gt;intersect script&lt;/A&gt;. The tip is in the FeatureSet call, make sure to enter the layer number from the item url and to only enter in the attributes you'd like to display in that specific expression in the brackets []. [*] notates pulling all the variables. If you're trying to come up with a "new" attribute, build the expression under Attribute Expression in the popup builder. If you're looking to do a custom chart or something, use Arcade under the options of content types to add in the popup.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 20:05:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/can-arcade-pop-up-expressions-use-a-map-service/m-p/1252502#M50006</guid>
      <dc:creator>Teresa_Blader</dc:creator>
      <dc:date>2023-01-27T20:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: Can Arcade pop-up expressions use a map service not in the web map?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/can-arcade-pop-up-expressions-use-a-map-service/m-p/1252513#M50008</link>
      <description>&lt;P&gt;This blog article covers using Arcade to add information from Living Atlas layers not in your map. Similar Arcade can be applied for layers from other organizations.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.esri.com/arcgis-blog/products/arcgis-living-atlas/decision-support/enhance-your-pop-ups-using-arcade-living-atlas/" target="_blank"&gt;https://www.esri.com/arcgis-blog/products/arcgis-living-atlas/decision-support/enhance-your-pop-ups-using-arcade-living-atlas/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 20:32:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/can-arcade-pop-up-expressions-use-a-map-service/m-p/1252513#M50008</guid>
      <dc:creator>BernSzukalski</dc:creator>
      <dc:date>2023-01-27T20:32:25Z</dc:date>
    </item>
  </channel>
</rss>

