<?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 Querying for a feature using GlobalID without specifying a layer in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/querying-for-a-feature-using-globalid-without/m-p/321438#M1575</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any way to return a feature from a published service layer using solely the GlobalID? I understand that the GlobalID is universally unique across a workspace, and what I'd like to do is return a feature from an ArcGIS Portal without providing a service or layer in my query to the ArcGIS REST API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From what I can tell, there is no way to query for a feature at the server level in the ArcGIS REST API (it looks like a layer in a service must be provided), but maybe I am missing something. Any insight would be appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Aug 2017 17:55:14 GMT</pubDate>
    <dc:creator>GregSmith2</dc:creator>
    <dc:date>2017-08-31T17:55:14Z</dc:date>
    <item>
      <title>Querying for a feature using GlobalID without specifying a layer</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/querying-for-a-feature-using-globalid-without/m-p/321438#M1575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any way to return a feature from a published service layer using solely the GlobalID? I understand that the GlobalID is universally unique across a workspace, and what I'd like to do is return a feature from an ArcGIS Portal without providing a service or layer in my query to the ArcGIS REST API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From what I can tell, there is no way to query for a feature at the server level in the ArcGIS REST API (it looks like a layer in a service must be provided), but maybe I am missing something. Any insight would be appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2017 17:55:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/querying-for-a-feature-using-globalid-without/m-p/321438#M1575</guid>
      <dc:creator>GregSmith2</dc:creator>
      <dc:date>2017-08-31T17:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Querying for a feature using GlobalID without specifying a layer</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/querying-for-a-feature-using-globalid-without/m-p/321439#M1576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Greg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at the ArcGIS REST API documentation for the &lt;A class="link-titled" href="https://resources.arcgis.com/en/help/rest/apiref/ms_dyn_query.html" title="https://resources.arcgis.com/en/help/rest/apiref/ms_dyn_query.html"&gt;Query (Operation)&lt;/A&gt;. As you can see,&amp;nbsp;&lt;EM&gt;layer&lt;/EM&gt; is the first parameter, and is required.&amp;nbsp;You could use python to query for a specific GLOBALID across a GIS Server by looping through all the feature layers in a GIS server that support the query operation. The issue, as I see it, is that since features published via a GIS server can come from multiple geodatabases. This could include any number of file-based or remote geodatabases. Since GLOBALID is unique only across the&amp;nbsp;geodatabase, there's no way to ensure that your GLOBALID would not be duplicated within a GIS server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Micah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2017 18:03:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/querying-for-a-feature-using-globalid-without/m-p/321439#M1576</guid>
      <dc:creator>MicahBabinski</dc:creator>
      <dc:date>2017-08-31T18:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: Querying for a feature using GlobalID without specifying a layer</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/querying-for-a-feature-using-globalid-without/m-p/321440#M1577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Micah,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply! I did consider just looping through all the feature layers like you mention, but I'd like to avoid that to save extra processing time, especially since I will already know the layer and OBJECTID beforehand (I was trying to use just the GLOBALID instead because it stores better in my database that is talking to my GIS server). Also, that&amp;nbsp;is an excellent point about published services potentially coming from many different data sources (and the GLOBALID only being unique per data source); I had not considered that when I wrote this post. It seems that the best way to proceed with this for now is to just continue storing the layer and OBJECTID to return features, instead of the GLOBALID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Sep 2017 21:26:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/querying-for-a-feature-using-globalid-without/m-p/321440#M1577</guid>
      <dc:creator>GregSmith2</dc:creator>
      <dc:date>2017-09-06T21:26:46Z</dc:date>
    </item>
  </channel>
</rss>

