<?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 Arcade - return layer name alias/ display name or decsription in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/arcade-return-layer-name-alias-display-name-or/m-p/1543755#M61724</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've recently found the arcade&amp;nbsp;&lt;STRONG&gt;GetFeatureSetInfo(GetFeatureSet($feature)).layerName, &lt;/STRONG&gt;however I am after getting the alias name or item description rather than the layer name - see screenshot for clarification, I would like to grab the green square rather than the red one&lt;/P&gt;&lt;P&gt;Does anyone know if this is doable please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cat206_0-1727691621051.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/116136i354CE13FB64B147C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cat206_0-1727691621051.png" alt="cat206_0-1727691621051.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 30 Sep 2024 11:21:30 GMT</pubDate>
    <dc:creator>cat206</dc:creator>
    <dc:date>2024-09-30T11:21:30Z</dc:date>
    <item>
      <title>Arcade - return layer name alias/ display name or decsription</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-return-layer-name-alias-display-name-or/m-p/1543755#M61724</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've recently found the arcade&amp;nbsp;&lt;STRONG&gt;GetFeatureSetInfo(GetFeatureSet($feature)).layerName, &lt;/STRONG&gt;however I am after getting the alias name or item description rather than the layer name - see screenshot for clarification, I would like to grab the green square rather than the red one&lt;/P&gt;&lt;P&gt;Does anyone know if this is doable please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cat206_0-1727691621051.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/116136i354CE13FB64B147C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cat206_0-1727691621051.png" alt="cat206_0-1727691621051.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 11:21:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-return-layer-name-alias-display-name-or/m-p/1543755#M61724</guid>
      <dc:creator>cat206</dc:creator>
      <dc:date>2024-09-30T11:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade - return layer name alias/ display name or decsription</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-return-layer-name-alias-display-name-or/m-p/1543765#M61725</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/613995"&gt;@cat206&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;GetFeatureSetInfo(&lt;STRONG&gt;GetFeatureSet($feature)&lt;/STRONG&gt;).layerName does not need the GetFeatureSet. Simply having the $feature or using $featureset will do the trick.&lt;/P&gt;&lt;P&gt;The other thing is, have you tried using console to see what it prints out because it should return the layer name only. If there are characters in the name that you don't want, then you can simply use &lt;A href="https://developers.arcgis.com/arcade/function-reference/text_functions/#split" target="_blank" rel="noopener"&gt;split&lt;/A&gt;&amp;nbsp;text function, which returns an array, and then select the first index of that array to get the name.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 11:54:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-return-layer-name-alias-display-name-or/m-p/1543765#M61725</guid>
      <dc:creator>RPGIS</dc:creator>
      <dc:date>2024-09-30T11:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade - return layer name alias/ display name or decsription</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-return-layer-name-alias-display-name-or/m-p/1543798#M61731</link>
      <description>&lt;P&gt;Thanks for the response and the tip!&amp;nbsp;&lt;/P&gt;&lt;P&gt;The feature layer is fed by a python script scheduled to run each day, which truncates and appends the data. We therefore can't amend the layer name, which is what the&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;GetFeatureSetInfo&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;grabs in the console. The alias and description is updated by the python script to say the last date and time the layer was updated, therefore it'll change daily. When adding the feature layer to a map, the alias doesn't get updated in the content as it's static, so i wanted to add an arcade expression to grab this info into the pop-up. I hope that make sense but looking at the arcade documentation, there doesn't seem a way to obtain the alias&amp;nbsp;&lt;A href="https://developers.arcgis.com/arcade/function-reference/featureset_functions/#getfeaturesetinfo" target="_blank" rel="noopener"&gt;FeatureSet functions | ArcGIS Arcade | Esri Developer&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 14:47:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-return-layer-name-alias-display-name-or/m-p/1543798#M61731</guid>
      <dc:creator>cat206</dc:creator>
      <dc:date>2024-09-30T14:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade - return layer name alias/ display name or decsription</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-return-layer-name-alias-display-name-or/m-p/1544170#M61750</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/613995"&gt;@cat206&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are using a python script then simply add a field that you can populate with the arcade expression and use that instead. I have used that method before.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 12:21:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-return-layer-name-alias-display-name-or/m-p/1544170#M61750</guid>
      <dc:creator>RPGIS</dc:creator>
      <dc:date>2024-10-01T12:21:21Z</dc:date>
    </item>
  </channel>
</rss>

