<?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 Primary/Foreign Key from Relationship Class in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/primary-foreign-key-from-relationship-class/m-p/544807#M42481</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was able to get the relationshipClassNames property to work (thanks Xander!), but did not realize the relationshipClass property did not have a primary and foreign key field.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;arcpy.Describe(arcpy.MakeTableView_management(table, table + "_view")).relationshipClassNames:&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried using some code from this &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/17953-Geo-Prmg-Model-9.3-to-get-at-the-Primary-Key-property-of-a-relationshipclass?highlight=primary+key" rel="nofollow noopener noreferrer" target="_blank"&gt;thread&lt;/A&gt;&lt;SPAN&gt;, but get an empty value []. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;fields = arcpy.Describe(relationshipName).fields
print fields&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas on how to get the primary/foreign keys from a relationship class?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 23:34:18 GMT</pubDate>
    <dc:creator>brettangel</dc:creator>
    <dc:date>2021-12-11T23:34:18Z</dc:date>
    <item>
      <title>Primary/Foreign Key from Relationship Class</title>
      <link>https://community.esri.com/t5/python-questions/primary-foreign-key-from-relationship-class/m-p/544807#M42481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was able to get the relationshipClassNames property to work (thanks Xander!), but did not realize the relationshipClass property did not have a primary and foreign key field.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;arcpy.Describe(arcpy.MakeTableView_management(table, table + "_view")).relationshipClassNames:&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried using some code from this &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/17953-Geo-Prmg-Model-9.3-to-get-at-the-Primary-Key-property-of-a-relationshipclass?highlight=primary+key" rel="nofollow noopener noreferrer" target="_blank"&gt;thread&lt;/A&gt;&lt;SPAN&gt;, but get an empty value []. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;fields = arcpy.Describe(relationshipName).fields
print fields&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas on how to get the primary/foreign keys from a relationship class?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:34:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/primary-foreign-key-from-relationship-class/m-p/544807#M42481</guid>
      <dc:creator>brettangel</dc:creator>
      <dc:date>2021-12-11T23:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: Primary/Foreign Key from Relationship Class</title>
      <link>https://community.esri.com/t5/python-questions/primary-foreign-key-from-relationship-class/m-p/544808#M42482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The answer from tech support is the primary/foreign key properties are not exposed in Python, but there is an enhancement request already in for this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2013 20:44:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/primary-foreign-key-from-relationship-class/m-p/544808#M42482</guid>
      <dc:creator>brettangel</dc:creator>
      <dc:date>2013-11-22T20:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: Primary/Foreign Key from Relationship Class</title>
      <link>https://community.esri.com/t5/python-questions/primary-foreign-key-from-relationship-class/m-p/544809#M42483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Brett,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You may have been on one of the other threads where I posted this response, but incase you missed it, this functionality will be included in the 10.2.1 release via arcpy.Describe(&amp;lt;relclass&amp;gt;).OriginClassKeys and arcpy.Describe(&amp;lt;relclass&amp;gt;).DestinationClassKeys.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jill&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 19:29:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/primary-foreign-key-from-relationship-class/m-p/544809#M42483</guid>
      <dc:creator>JillianPenney</dc:creator>
      <dc:date>2013-11-25T19:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: Primary/Foreign Key from Relationship Class</title>
      <link>https://community.esri.com/t5/python-questions/primary-foreign-key-from-relationship-class/m-p/544810#M42484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Jill!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2013 13:37:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/primary-foreign-key-from-relationship-class/m-p/544810#M42484</guid>
      <dc:creator>brettangel</dc:creator>
      <dc:date>2013-12-02T13:37:35Z</dc:date>
    </item>
  </channel>
</rss>

