<?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 Are the allowable SQL functions in 'outFields' documented anywhere? in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/are-the-allowable-sql-functions-in-outfields/m-p/1331204#M4558</link>
    <description>&lt;P&gt;I can't seem to find anything about what functions are available to me in the &lt;STRONG&gt;outFields&lt;/STRONG&gt; parameter of a query.&lt;/P&gt;&lt;P&gt;I can do things like &lt;STRONG&gt;UPPER(field)&lt;/STRONG&gt; and get my string field in upper-case. Or I can do &lt;STRONG&gt;field * 10 &lt;/STRONG&gt;to get that field multiplied by 10. But I can't use &lt;STRONG&gt;LEFT(field, n)&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;From what I can find, the documentation just says this parameter takes lists of field names or a '*' wildcard, not even a mention of functions.&lt;/P&gt;&lt;P&gt;Knowing what is and isn't allowed here without doing lots of trial and error would be great. I have a number of use-cases where I only need to store the data one way, but might need to query it out differently. Functions in the query save me a step of manipulating the data after getting it.&lt;/P&gt;</description>
    <pubDate>Thu, 21 Sep 2023 18:06:00 GMT</pubDate>
    <dc:creator>jcarlson</dc:creator>
    <dc:date>2023-09-21T18:06:00Z</dc:date>
    <item>
      <title>Are the allowable SQL functions in 'outFields' documented anywhere?</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/are-the-allowable-sql-functions-in-outfields/m-p/1331204#M4558</link>
      <description>&lt;P&gt;I can't seem to find anything about what functions are available to me in the &lt;STRONG&gt;outFields&lt;/STRONG&gt; parameter of a query.&lt;/P&gt;&lt;P&gt;I can do things like &lt;STRONG&gt;UPPER(field)&lt;/STRONG&gt; and get my string field in upper-case. Or I can do &lt;STRONG&gt;field * 10 &lt;/STRONG&gt;to get that field multiplied by 10. But I can't use &lt;STRONG&gt;LEFT(field, n)&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;From what I can find, the documentation just says this parameter takes lists of field names or a '*' wildcard, not even a mention of functions.&lt;/P&gt;&lt;P&gt;Knowing what is and isn't allowed here without doing lots of trial and error would be great. I have a number of use-cases where I only need to store the data one way, but might need to query it out differently. Functions in the query save me a step of manipulating the data after getting it.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 18:06:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/are-the-allowable-sql-functions-in-outfields/m-p/1331204#M4558</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2023-09-21T18:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: Are the allowable SQL functions in 'outFields' documented anywhere?</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/are-the-allowable-sql-functions-in-outfields/m-p/1331484#M4561</link>
      <description>&lt;P&gt;I think instead of LEFT you can use SUBSTRING.&lt;/P&gt;&lt;P&gt;This is the best information I'm aware of regarding SQL support:&lt;/P&gt;&lt;P&gt;&lt;A href="https://enterprise.arcgis.com/en/server/latest/administer/linux/about-standardized-queries.htm" target="_blank"&gt;Enforce standardized SQL queries—ArcGIS Server | Documentation for ArcGIS Enterprise&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://doc.arcgis.com/en/arcgis-online/reference/sql-agol.htm" target="_blank"&gt;Standardized SQL functions in ArcGIS Online—ArcGIS Online Help | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe this is only supported 10.9+ when '&lt;SPAN&gt;supportsOutFieldSqlExpression' was added.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2023 14:55:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/are-the-allowable-sql-functions-in-outfields/m-p/1331484#M4561</guid>
      <dc:creator>EarlMedina</dc:creator>
      <dc:date>2023-09-22T14:55:55Z</dc:date>
    </item>
  </channel>
</rss>

