<?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: Query hosted feature layer from ArcGIS Pro Add-In in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/query-hosted-feature-layer-from-arcgis-pro-add-in/m-p/1653142#M13159</link>
    <description>&lt;P&gt;Just a quick glance, maybe get the table itself and run the query against that. I'm not too familiar with the Execute statement on the gdb.&lt;/P&gt;&lt;P&gt;this is from the docs at&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic14110.html" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic14110.html&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;using&lt;/SPAN&gt; (RowCursor rowCursor = geodatabase.Evaluate(adaCompilantParksQueryDef, &lt;SPAN&gt;false&lt;/SPAN&gt;))&lt;/PRE&gt;&lt;P&gt;&amp;nbsp; you are missing the recycle parameter&lt;/P&gt;</description>
    <pubDate>Thu, 25 Sep 2025 11:50:39 GMT</pubDate>
    <dc:creator>MichaelKohler</dc:creator>
    <dc:date>2025-09-25T11:50:39Z</dc:date>
    <item>
      <title>Query hosted feature layer from ArcGIS Pro Add-In</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/query-hosted-feature-layer-from-arcgis-pro-add-in/m-p/1652555#M13146</link>
      <description>&lt;P&gt;I am using ArcGIS Pro 3.5.3 and hitting ArcGIS Enterprise 11.5 portal. I can find the item in the portal but I can't figure out how to query it.&amp;nbsp; I have tried:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;using (Geodatabase gdb = new Geodatabase(new ServiceConnectionProperties(new Uri($"{_portalLayer.Url}/0"))))
{                       
    string whereClause = $"OBJECTID = {SelectedIntersection.ObjectId}";

    QueryDef qf = new QueryDef
    {
        Tables = _intersectionPtFC,
        WhereClause = whereClause
    };

    using (RowCursor rowCursor = gdb.Evaluate(qf))
    {
        while (rowCursor.MoveNext())
        {
            using (Row row = rowCursor.Current)
            {
                Feature thePoint = null;
                thePoint = row as Feature;

                System.Diagnostics.Debug.Print(row["INTERESCTION_NAME"].ToString());

                locationPoint = thePoint.GetShape() as MapPoint;
            }
        }
    }
}&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 23 Sep 2025 18:16:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/query-hosted-feature-layer-from-arcgis-pro-add-in/m-p/1652555#M13146</guid>
      <dc:creator>BryanLynn1</dc:creator>
      <dc:date>2025-09-23T18:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: Query hosted feature layer from ArcGIS Pro Add-In</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/query-hosted-feature-layer-from-arcgis-pro-add-in/m-p/1653142#M13159</link>
      <description>&lt;P&gt;Just a quick glance, maybe get the table itself and run the query against that. I'm not too familiar with the Execute statement on the gdb.&lt;/P&gt;&lt;P&gt;this is from the docs at&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic14110.html" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic14110.html&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;using&lt;/SPAN&gt; (RowCursor rowCursor = geodatabase.Evaluate(adaCompilantParksQueryDef, &lt;SPAN&gt;false&lt;/SPAN&gt;))&lt;/PRE&gt;&lt;P&gt;&amp;nbsp; you are missing the recycle parameter&lt;/P&gt;</description>
      <pubDate>Thu, 25 Sep 2025 11:50:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/query-hosted-feature-layer-from-arcgis-pro-add-in/m-p/1653142#M13159</guid>
      <dc:creator>MichaelKohler</dc:creator>
      <dc:date>2025-09-25T11:50:39Z</dc:date>
    </item>
  </channel>
</rss>

