<?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 Aliases don't work in Arcade in ArcGIS Online Developers Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-developers-questions/aliases-don-t-work-in-arcade/m-p/1502979#M1425</link>
    <description>&lt;P&gt;Howdy&lt;/P&gt;&lt;P&gt;I have a problem with aliases, I changed the alias of a field like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="N0MAD_0-1720531976040.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/109188i599E6ACF80D23372/image-size/medium?v=v2&amp;amp;px=400" role="button" title="N0MAD_0-1720531976040.png" alt="N0MAD_0-1720531976040.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But when i try to use the field in an arcade expression, the alias seems to don't work&lt;BR /&gt;For instance, when i call this field, here what's Arcade see:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var fields = Schema($feature).fields
Console(fields[42])

var count = 0;
for (var field in $feature) {
	if (count==41) Console(field)
	count++
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Console:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markdown"&gt;{"alias":"T2_C9_POUSSIER_WINSBACK_MARIE_AGNES","defaultValue":null,"editable":true,"name":"T2_C9_POUSSIER_WINSBACK_MARIE_A","nullable":true,"type":"esriFieldTypeInteger"}

T2_C9_POUSSIER_WINSBACK_MARIE_A&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;It seems that the field alias isn't stocked in the schema, but then, how can i get the aliases ?&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jul 2024 13:40:55 GMT</pubDate>
    <dc:creator>N0MAD</dc:creator>
    <dc:date>2024-07-09T13:40:55Z</dc:date>
    <item>
      <title>Aliases don't work in Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/aliases-don-t-work-in-arcade/m-p/1502979#M1425</link>
      <description>&lt;P&gt;Howdy&lt;/P&gt;&lt;P&gt;I have a problem with aliases, I changed the alias of a field like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="N0MAD_0-1720531976040.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/109188i599E6ACF80D23372/image-size/medium?v=v2&amp;amp;px=400" role="button" title="N0MAD_0-1720531976040.png" alt="N0MAD_0-1720531976040.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But when i try to use the field in an arcade expression, the alias seems to don't work&lt;BR /&gt;For instance, when i call this field, here what's Arcade see:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var fields = Schema($feature).fields
Console(fields[42])

var count = 0;
for (var field in $feature) {
	if (count==41) Console(field)
	count++
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Console:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markdown"&gt;{"alias":"T2_C9_POUSSIER_WINSBACK_MARIE_AGNES","defaultValue":null,"editable":true,"name":"T2_C9_POUSSIER_WINSBACK_MARIE_A","nullable":true,"type":"esriFieldTypeInteger"}

T2_C9_POUSSIER_WINSBACK_MARIE_A&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;It seems that the field alias isn't stocked in the schema, but then, how can i get the aliases ?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 13:40:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/aliases-don-t-work-in-arcade/m-p/1502979#M1425</guid>
      <dc:creator>N0MAD</dc:creator>
      <dc:date>2024-07-09T13:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: Aliases don't work in Arcade</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/aliases-don-t-work-in-arcade/m-p/1503002#M1428</link>
      <description>&lt;P&gt;That's really strange. It must be a field setting in the map? If the actual &lt;STRONG&gt;alias&lt;/STRONG&gt; key in the schema doesn't have the preferred text, I don't know where else the popup would find it.&lt;/P&gt;&lt;P&gt;Do you have access to the source data? Configuring the aliases on the layer's Data tab would probably address this. If not, you might have to re-code the field names yourself using &lt;STRONG&gt;Decode&lt;/STRONG&gt; or something.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 14:24:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/aliases-don-t-work-in-arcade/m-p/1503002#M1428</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2024-07-09T14:24:35Z</dc:date>
    </item>
  </channel>
</rss>

