<?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 Pull attributes from Related Table into Parent feature class in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/pull-attributes-from-related-table-into-parent/m-p/1604357#M94794</link>
    <description>&lt;P&gt;Issue: The following attribute rule is no longer populating the feature layer, this was created by a previous person, and I need help understanding why.&lt;/P&gt;&lt;P&gt;if ($feature.Adoption_Status != "Approved") {&lt;BR /&gt;return ;&lt;BR /&gt;}&lt;BR /&gt;var parent_id = $feature.GlobalID;&lt;BR /&gt;if (IsEmpty(parent_id)){&lt;BR /&gt;return;&lt;BR /&gt;}&lt;BR /&gt;// Could use &lt;A href="https://developers.arcgis.com/arcade/function-reference/featureset_functions/#featuresetbyrelationshipname" target="_blank"&gt;https://developers.arcgis.com/arcade/function-reference/featureset_functions/#featuresetbyrelationshipname&lt;/A&gt; also&lt;BR /&gt;var relatedTab = FeatureSetByName($datastore, "ADOPTCREATOR.PW_CityBeautiful_AdopterApplications", ['GlobalID', 'Parent_GUID', 'Name', 'Email', 'Phone_Number'], false)&lt;BR /&gt;var relatedRec = First(Filter(relatedTab, 'Parent_GUID = @parent_id'))&lt;BR /&gt;if (IsEmpty(relatedRec)){&lt;BR /&gt;return;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;return {&lt;BR /&gt;"result": {&lt;BR /&gt;"attributes": {&lt;BR /&gt;"Adopted_By": relatedRec.Name,&lt;BR /&gt;"Adopter_Contact_Email": relatedRec.Email,&lt;BR /&gt;"Adopter_Contact_Number": relatedRec.Phone_Number&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Apr 2025 19:33:10 GMT</pubDate>
    <dc:creator>Gabrielle_Byczek</dc:creator>
    <dc:date>2025-04-09T19:33:10Z</dc:date>
    <item>
      <title>Pull attributes from Related Table into Parent feature class</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/pull-attributes-from-related-table-into-parent/m-p/1604357#M94794</link>
      <description>&lt;P&gt;Issue: The following attribute rule is no longer populating the feature layer, this was created by a previous person, and I need help understanding why.&lt;/P&gt;&lt;P&gt;if ($feature.Adoption_Status != "Approved") {&lt;BR /&gt;return ;&lt;BR /&gt;}&lt;BR /&gt;var parent_id = $feature.GlobalID;&lt;BR /&gt;if (IsEmpty(parent_id)){&lt;BR /&gt;return;&lt;BR /&gt;}&lt;BR /&gt;// Could use &lt;A href="https://developers.arcgis.com/arcade/function-reference/featureset_functions/#featuresetbyrelationshipname" target="_blank"&gt;https://developers.arcgis.com/arcade/function-reference/featureset_functions/#featuresetbyrelationshipname&lt;/A&gt; also&lt;BR /&gt;var relatedTab = FeatureSetByName($datastore, "ADOPTCREATOR.PW_CityBeautiful_AdopterApplications", ['GlobalID', 'Parent_GUID', 'Name', 'Email', 'Phone_Number'], false)&lt;BR /&gt;var relatedRec = First(Filter(relatedTab, 'Parent_GUID = @parent_id'))&lt;BR /&gt;if (IsEmpty(relatedRec)){&lt;BR /&gt;return;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;return {&lt;BR /&gt;"result": {&lt;BR /&gt;"attributes": {&lt;BR /&gt;"Adopted_By": relatedRec.Name,&lt;BR /&gt;"Adopter_Contact_Email": relatedRec.Email,&lt;BR /&gt;"Adopter_Contact_Number": relatedRec.Phone_Number&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 19:33:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/pull-attributes-from-related-table-into-parent/m-p/1604357#M94794</guid>
      <dc:creator>Gabrielle_Byczek</dc:creator>
      <dc:date>2025-04-09T19:33:10Z</dc:date>
    </item>
  </channel>
</rss>

