<?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 Related Records in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-related-records/m-p/16414#M81</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The relationships are listed in the layer/table description, for example this table has one relationship :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/SanFrancisco/311Incidents/MapServer/1"&gt;http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/SanFrancisco/311Incidents/MapServer/1&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Relationships:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IncidentPriority_ServiceRequest (1)&amp;nbsp; -- Related To: Incidents (0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In this case 1 is the relationshipID and 0 represents the id of the related table/layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The objectIDs will be the objectIDs for which you want to find the related records from the related table/layer&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can get some more info about Query related records operations here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://sampleserver3.arcgisonline.com/ArcGIS/SDK/REST/queryrelatedrecords.html"&gt;http://sampleserver3.arcgisonline.com/ArcGIS/SDK/REST/queryrelatedrecords.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Aug 2010 11:59:36 GMT</pubDate>
    <dc:creator>RaviNarayanan</dc:creator>
    <dc:date>2010-08-06T11:59:36Z</dc:date>
    <item>
      <title>Query Related Records</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-related-records/m-p/16413#M80</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have set up a relate in a map service and would like to access that relate via REST.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I click on the 'Query Related Records' link in the map service and I am asked for the Object Ids, and the Relationship Id as shown in the attached image.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Where do I find the Relationship Id and Object Id?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Aug 2010 16:40:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-related-records/m-p/16413#M80</guid>
      <dc:creator>MeleKoneya</dc:creator>
      <dc:date>2010-08-05T16:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: Query Related Records</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-related-records/m-p/16414#M81</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The relationships are listed in the layer/table description, for example this table has one relationship :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/SanFrancisco/311Incidents/MapServer/1"&gt;http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/SanFrancisco/311Incidents/MapServer/1&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Relationships:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IncidentPriority_ServiceRequest (1)&amp;nbsp; -- Related To: Incidents (0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In this case 1 is the relationshipID and 0 represents the id of the related table/layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The objectIDs will be the objectIDs for which you want to find the related records from the related table/layer&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can get some more info about Query related records operations here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://sampleserver3.arcgisonline.com/ArcGIS/SDK/REST/queryrelatedrecords.html"&gt;http://sampleserver3.arcgisonline.com/ArcGIS/SDK/REST/queryrelatedrecords.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Aug 2010 11:59:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-related-records/m-p/16414#M81</guid>
      <dc:creator>RaviNarayanan</dc:creator>
      <dc:date>2010-08-06T11:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Query Related Records</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-related-records/m-p/16415#M82</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the response and the information.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am still not able to get our relate to work.&amp;nbsp;&amp;nbsp;&amp;nbsp; Does the related table need to be a stand alone table or can you relate two feature classes in your MXD?&amp;nbsp;&amp;nbsp;&amp;nbsp; I noticed your example shows a feautre class related to a stand alone table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mele&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Aug 2010 14:07:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-related-records/m-p/16415#M82</guid>
      <dc:creator>MeleKoneya</dc:creator>
      <dc:date>2010-08-06T14:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: Query Related Records</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-related-records/m-p/16416#M83</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I used the new Query Layer in ArcGIS 10 to create a 'table' from a feature class and then performed the relate on the newly created Query Layer and now can Query Related records in the ArcGIS Map Service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it a good practice to create a Query Layer agains the Feature Class or should I use a Multi-Version view or another method?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Aug 2010 15:29:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-related-records/m-p/16416#M83</guid>
      <dc:creator>MeleKoneya</dc:creator>
      <dc:date>2010-08-06T15:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: Query Related Records</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-related-records/m-p/16417#M84</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can relate two feature classes. There is a currently a bug where Query Related records returns an error in .NET REST when there are no standalone tables in the published map document. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;NIM058773: Query related records fails with error "Invalid value for parameter 'outFields'".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Workaround is to have an empty table in the map and this table does not need to participate in the relationship.&amp;nbsp; We are fixing this bug in 10.0 SP1.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Aug 2010 21:54:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-related-records/m-p/16417#M84</guid>
      <dc:creator>RaviNarayanan</dc:creator>
      <dc:date>2010-08-06T21:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: Query Related Records</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-related-records/m-p/16418#M85</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for updating this.&amp;nbsp;&amp;nbsp;&amp;nbsp; I had contacted support and I will forward the BUG number you gave to me.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Aug 2010 21:59:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-related-records/m-p/16418#M85</guid>
      <dc:creator>MeleKoneya</dc:creator>
      <dc:date>2010-08-06T21:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Query Related Records</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-related-records/m-p/16419#M86</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is Query Related Records and relates supported in ArcGIS Server 9.3.1 map services?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a relate (fc to standalone table) set up in my .mxd. I created the .msd in ArcMap 9.3.1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The .msd was published to a map service by someone else.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The layer with the relate doesn't even draw in the map, and there is no information on the relate in the map service page - &lt;/SPAN&gt;&lt;A href="http://10.130.1.211/ArcGIS/rest/services/Testing/Hydrant/MapServer/1"&gt;http://10.130.1.211/ArcGIS/rest/services/Testing/Hydrant/MapServer/1&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;and the only supported operation is Query.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this only supported in ArcGIS Server 10?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am also using the Flex API 2.0.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Will&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Sep 2010 14:57:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-related-records/m-p/16419#M86</guid>
      <dc:creator>WillHughes1</dc:creator>
      <dc:date>2010-09-23T14:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: Query Related Records</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-related-records/m-p/16420#M87</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Will,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Map services which show relates within the MXD is new in ArcGIS 10.0&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/0093/00930000000m000000.htm"&gt;http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/0093/00930000000m000000.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mele&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Sep 2010 15:07:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-related-records/m-p/16420#M87</guid>
      <dc:creator>MeleKoneya</dc:creator>
      <dc:date>2010-09-23T15:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: Query Related Records</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-related-records/m-p/16421#M88</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Mele,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks. I assumed that was the case. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How about joins? supported in 10 only?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Will&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Sep 2010 15:50:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-related-records/m-p/16421#M88</guid>
      <dc:creator>WillHughes1</dc:creator>
      <dc:date>2010-09-23T15:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: Query Related Records</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-related-records/m-p/16422#M89</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does anyone have a workaround for this for those of us who will be on 9.3 for a while?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My only thoughts are to build an ASP or Cold Fusion page to display the data, and hopefully figure out how to pass a query string in the flexviewer (2.1).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this possible in the flexviewer? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It would be great if someone has a working example of this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Will&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Sep 2010 12:12:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-related-records/m-p/16422#M89</guid>
      <dc:creator>WillHughes1</dc:creator>
      <dc:date>2010-09-24T12:12:46Z</dc:date>
    </item>
  </channel>
</rss>

