<?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: Get the tables joined to a feature layer in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-the-tables-joined-to-a-feature-layer/m-p/1629884#M13021</link>
    <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;This example helped me a lot. Thanks.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Jul 2025 14:49:42 GMT</pubDate>
    <dc:creator>JFr87</dc:creator>
    <dc:date>2025-07-03T14:49:42Z</dc:date>
    <item>
      <title>Get the tables joined to a feature layer</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-the-tables-joined-to-a-feature-layer/m-p/1629231#M13013</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Hi,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;is there a way to determine which tables are joined to a feature layer using the ArcGIS Pro SDK for .NET?&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;For example, I have a Feature Layer "Trees" joined to a Table "Trees_Metadata".&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I performed the join using the "Joins and Relates" =&amp;gt; "Add Join..." function.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;How can I use the ArcGIS Pro SDK for .NET to find out retrospectively which table the "Trees" layer is joined to?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Thanks in advance&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2025 06:39:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-the-tables-joined-to-a-feature-layer/m-p/1629231#M13013</guid>
      <dc:creator>JFr87</dc:creator>
      <dc:date>2025-07-02T06:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Get the tables joined to a feature layer</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-the-tables-joined-to-a-feature-layer/m-p/1629240#M13015</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I've already tried to determine the joined table using FeatureClass.GetJoin().&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I get the following exception: &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;System.InvalidOperationException: "'Trees' is not a joined table."
'Baumgruppen' is not a joined table.
  at ArcGIS.Core.Data.Table.GetJoin()&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;FeatureClass.IsJoinedTable() also returns false, even though I created a join as mentioned above.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2025 07:11:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-the-tables-joined-to-a-feature-layer/m-p/1629240#M13015</guid>
      <dc:creator>JFr87</dc:creator>
      <dc:date>2025-07-02T07:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: Get the tables joined to a feature layer</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-the-tables-joined-to-a-feature-layer/m-p/1629292#M13016</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You need to start from FeatureLayer or StandaloneTable to get origin or joined table.&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;        protected override async void OnClick()
        {
            var map = MapView.Active.Map;
            if (map == null || map.Layers.Count == 0)
            {
                MessageBox.Show("No layers found in the map.");
                return;
            }

            var bfl = map.GetLayersAsFlattenedList().OfType&amp;lt;FeatureLayer&amp;gt;().FirstOrDefault(layer =&amp;gt; layer.Name.Equals("your layer name"));

            if(bfl.HasJoins)
            {
                await QueuedTask.Run(() =&amp;gt; {
                    var table1 = bfl.GetTable().GetJoin().GetOriginTable();
                    var table2 = bfl.GetTable().GetJoin().GetJoinedTable();
                    // your code here

                });  
            }
        }&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 02 Jul 2025 10:59:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-the-tables-joined-to-a-feature-layer/m-p/1629292#M13016</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2025-07-02T10:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: Get the tables joined to a feature layer</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-the-tables-joined-to-a-feature-layer/m-p/1629884#M13021</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;This example helped me a lot. Thanks.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2025 14:49:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-the-tables-joined-to-a-feature-layer/m-p/1629884#M13021</guid>
      <dc:creator>JFr87</dc:creator>
      <dc:date>2025-07-03T14:49:42Z</dc:date>
    </item>
  </channel>
</rss>

