<?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 QueryRelatedRecords Set RelationshipID in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/queryrelatedrecords-set-relationshipid/m-p/117427#M549</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are querying the REST API with QueryRelatedRecords.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The REST API is used to access the relationships. Here’s a sample query I send to the Map Service:&lt;/P&gt;&lt;P&gt;[Map Service Root]/MapServer/17/queryRelatedRecords?objectIds=1234&amp;amp;relationshipId=1&amp;amp;outFields=*&amp;amp;f=json&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where “/17/” is the layer number&amp;nbsp;and “relationshipID=1”.&amp;nbsp; Our developer hardwired this into the code.&amp;nbsp; &amp;nbsp;Somewhere along the lines the realtionshipID seems to have changed.&amp;nbsp; &amp;nbsp;Is there a way we can set this when publishing the service?&amp;nbsp; &amp;nbsp;There are actually no format relationship classes within ArcSDE created right now and the relationships are phyiscally created within Oracle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you control&amp;nbsp;and specifcally set RelationshipIds are set to when publishing the services?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note again:&amp;nbsp; No formal ESRI Relationship Classes defined, only defined within Oracle directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Feb 2019 17:06:37 GMT</pubDate>
    <dc:creator>BillHarvey1</dc:creator>
    <dc:date>2019-02-01T17:06:37Z</dc:date>
    <item>
      <title>QueryRelatedRecords Set RelationshipID</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/queryrelatedrecords-set-relationshipid/m-p/117427#M549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are querying the REST API with QueryRelatedRecords.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The REST API is used to access the relationships. Here’s a sample query I send to the Map Service:&lt;/P&gt;&lt;P&gt;[Map Service Root]/MapServer/17/queryRelatedRecords?objectIds=1234&amp;amp;relationshipId=1&amp;amp;outFields=*&amp;amp;f=json&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where “/17/” is the layer number&amp;nbsp;and “relationshipID=1”.&amp;nbsp; Our developer hardwired this into the code.&amp;nbsp; &amp;nbsp;Somewhere along the lines the realtionshipID seems to have changed.&amp;nbsp; &amp;nbsp;Is there a way we can set this when publishing the service?&amp;nbsp; &amp;nbsp;There are actually no format relationship classes within ArcSDE created right now and the relationships are phyiscally created within Oracle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you control&amp;nbsp;and specifcally set RelationshipIds are set to when publishing the services?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note again:&amp;nbsp; No formal ESRI Relationship Classes defined, only defined within Oracle directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2019 17:06:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/queryrelatedrecords-set-relationshipid/m-p/117427#M549</guid>
      <dc:creator>BillHarvey1</dc:creator>
      <dc:date>2019-02-01T17:06:37Z</dc:date>
    </item>
  </channel>
</rss>

