<?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: AddRelatedFeature Url Parameter Error: Foreign key in ArcGIS Field Maps Questions</title>
    <link>https://community.esri.com/t5/arcgis-field-maps-questions/addrelatedfeature-url-parameter-error-foreign-key/m-p/1346458#M7323</link>
    <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/658248"&gt;@LWWCGIS&lt;/a&gt;&amp;nbsp;, can you add some context about how you are using this URL? Is it from a popup in Field Maps and you are attempting to launch directly into a related record collection (perhaps in another map or layer)? Is the globalID parameter that is being "converted" the one in brackets or are you referring to the value for the foreignKeyField? I believe if its the one in brackets, ie pulling the globalID value from the table, then this would be a known issue.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Nov 2023 00:04:37 GMT</pubDate>
    <dc:creator>ColinLawrence</dc:creator>
    <dc:date>2023-11-07T00:04:37Z</dc:date>
    <item>
      <title>AddRelatedFeature Url Parameter Error: Foreign key</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/addrelatedfeature-url-parameter-error-foreign-key/m-p/1314417#M6681</link>
      <description>&lt;P&gt;"Unable to Update Feature&lt;/P&gt;&lt;P&gt;The specified foreign key field couldn't be found."&lt;/P&gt;&lt;P&gt;I've been running into this error when attempting to add a related feature via url from a popup in my maps. The popup is on a polygon layer which is related to a point layer - both are in the same map, both layers are editable, and my foreign key field parameter is definitely the correct field name from the point layer.&lt;/P&gt;&lt;P&gt;I'm a little unsure of what might be causing this and I couldn't find much documentation surrounding the addRelatedFeature field maps parameter - anyone know what might be causing this error?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 01:35:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/addrelatedfeature-url-parameter-error-foreign-key/m-p/1314417#M6681</guid>
      <dc:creator>LuisaC</dc:creator>
      <dc:date>2023-08-02T01:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: AddRelatedFeature Url Parameter Error: Foreign key</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/addrelatedfeature-url-parameter-error-foreign-key/m-p/1315731#M6707</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/706344"&gt;@LuisaC&lt;/a&gt;&amp;nbsp;, what key fields are you using for your relationship? Is it a GlobalID -&amp;gt; GUID or are you using your own fields?&lt;BR /&gt;&lt;BR /&gt;Have you tried using the key field from the "parent" layer? I understand this can be a little confusing but as the point of entry, and what you are editing in this scenario, is the related "child" feature it would then be the "parent" layer which is the foreignKeyField. Therefore if you are using GlobalID -&amp;gt; GUID relationship the foreignKeyField would be GlobalID. Give this a shot and let me know if you still get an error.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 21:19:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/addrelatedfeature-url-parameter-error-foreign-key/m-p/1315731#M6707</guid>
      <dc:creator>ColinLawrence</dc:creator>
      <dc:date>2023-08-04T21:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: AddRelatedFeature Url Parameter Error: Foreign key</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/addrelatedfeature-url-parameter-error-foreign-key/m-p/1316912#M6732</link>
      <description>&lt;P&gt;That does appear to be the solution - thanks a ton!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 15:17:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/addrelatedfeature-url-parameter-error-foreign-key/m-p/1316912#M6732</guid>
      <dc:creator>LuisaC</dc:creator>
      <dc:date>2023-08-09T15:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: AddRelatedFeature Url Parameter Error: Foreign key</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/addrelatedfeature-url-parameter-error-foreign-key/m-p/1346345#M7318</link>
      <description>&lt;P&gt;Could I see a good example of using this parameter? I am trying to create a related record using the addRelatedFeature but can't seem to get it working. I'm sure I'm missing one little thing. My URL looks like:&lt;/P&gt;&lt;P&gt;&lt;A href="https://fieldmaps.arcgis.app?referenceContext=addRelatedFeature&amp;amp;itemID=9b009b91e54342ce84bb9af179f71fde&amp;amp;featureSourceURL=https://services1.arcgis.com/Txq2JUfAytfzQqPz/arcgis/rest/services/dev_WaterValves_InspectionView/FeatureServer/0&amp;amp;featureID={GlobalID}&amp;amp;foreignKeyField=GlobalID" target="_blank" rel="noopener"&gt;https://fieldmaps.arcgis.app?referenceContext=addRelatedFeature&amp;amp;itemID=9b009b91e54342ce84bb9af179f71fde&amp;amp;featureSourceURL=https://services1.arcgis.com/Txq2JUfAytfzQqPz/arcgis/rest/services/dev_WaterValves_InspectionView/FeatureServer/0&amp;amp;featureID={GlobalID}&amp;amp;foreignKeyField=GlobalID&lt;/A&gt;&lt;/P&gt;&lt;P&gt;EDIT: The only difference I see is that when I click this url inside of field maps it sends the GlobalID in uppercase whereas the link generated through webmapviewer the GlobalID is in lowercase. Using the link with lowercase GlobalID works. Why is field maps sending uppercase and is this what's causing issue?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 21:18:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/addrelatedfeature-url-parameter-error-foreign-key/m-p/1346345#M7318</guid>
      <dc:creator>LWWCGIS</dc:creator>
      <dc:date>2023-11-06T21:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: AddRelatedFeature Url Parameter Error: Foreign key</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/addrelatedfeature-url-parameter-error-foreign-key/m-p/1346458#M7323</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/658248"&gt;@LWWCGIS&lt;/a&gt;&amp;nbsp;, can you add some context about how you are using this URL? Is it from a popup in Field Maps and you are attempting to launch directly into a related record collection (perhaps in another map or layer)? Is the globalID parameter that is being "converted" the one in brackets or are you referring to the value for the foreignKeyField? I believe if its the one in brackets, ie pulling the globalID value from the table, then this would be a known issue.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 00:04:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/addrelatedfeature-url-parameter-error-foreign-key/m-p/1346458#M7323</guid>
      <dc:creator>ColinLawrence</dc:creator>
      <dc:date>2023-11-07T00:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: AddRelatedFeature Url Parameter Error: Foreign key</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/addrelatedfeature-url-parameter-error-foreign-key/m-p/1346496#M7327</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/362837"&gt;@ColinLawrence&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thank you for responding. I am using the URL inside fieldmaps to call an inspection through the popup to reduce the amount of clicks to get to the related table. You're correct in that the issue lies with the GlobalID in brackets. Fortunately, I have a workaround that seems to work by using arcade to strip off the brackets that are passed in the URL. Now I am getting a clean GlobalID. I should have thought of this before.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 03:25:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/addrelatedfeature-url-parameter-error-foreign-key/m-p/1346496#M7327</guid>
      <dc:creator>LWWCGIS</dc:creator>
      <dc:date>2023-11-07T03:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: AddRelatedFeature Url Parameter Error: Foreign key</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/addrelatedfeature-url-parameter-error-foreign-key/m-p/1346803#M7338</link>
      <description>&lt;P&gt;Thats great! We do see the need to be more consistent across the platform with how the GlobalID field is handled.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 17:53:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/addrelatedfeature-url-parameter-error-foreign-key/m-p/1346803#M7338</guid>
      <dc:creator>ColinLawrence</dc:creator>
      <dc:date>2023-11-07T17:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: AddRelatedFeature Url Parameter Error: Foreign key</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/addrelatedfeature-url-parameter-error-foreign-key/m-p/1371611#M7766</link>
      <description>&lt;P&gt;Hi Colin, thanks for your help with this issue! I've got a feature layer with multiple related tables, and I've got the link working in that it opens the form for a new related record in one of the tables. Do you know if there's a way to specify&amp;nbsp;in the URL parameters which table to add a record to?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2024 14:57:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/addrelatedfeature-url-parameter-error-foreign-key/m-p/1371611#M7766</guid>
      <dc:creator>RowanTolfts</dc:creator>
      <dc:date>2024-01-18T14:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: AddRelatedFeature Url Parameter Error: Foreign key</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/addrelatedfeature-url-parameter-error-foreign-key/m-p/1371843#M7774</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/526425"&gt;@RowanTolfts&lt;/a&gt;&amp;nbsp;I believe it will default to the table that comes first in the service index given they share the same key field. Right now there is no way around that as far as i'm aware. I believe its something the team is investigating for the future.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2024 19:26:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/addrelatedfeature-url-parameter-error-foreign-key/m-p/1371843#M7774</guid>
      <dc:creator>ColinLawrence</dc:creator>
      <dc:date>2024-01-18T19:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: AddRelatedFeature Url Parameter Error: Foreign key</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/addrelatedfeature-url-parameter-error-foreign-key/m-p/1372159#M7777</link>
      <description>&lt;P&gt;Hi Colin, that's a shame; glad to hear that it's being investigated by the team. Thank you for your help regardless!&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2024 10:28:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/addrelatedfeature-url-parameter-error-foreign-key/m-p/1372159#M7777</guid>
      <dc:creator>RowanTolfts</dc:creator>
      <dc:date>2024-01-19T10:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: AddRelatedFeature Url Parameter Error: Foreign key</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/addrelatedfeature-url-parameter-error-foreign-key/m-p/1400976#M8197</link>
      <description>&lt;P&gt;Thank you Dustin! Until I saw this I couldn't figure out why the URL wasn't working. I then had it return the URL as text in my pop-up and realized that field maps was adding the curly brackets to the globalid (while map viewer wasn't). A custom expression with a Replace function solved it!&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 16:09:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/addrelatedfeature-url-parameter-error-foreign-key/m-p/1400976#M8197</guid>
      <dc:creator>DanMakridakis</dc:creator>
      <dc:date>2024-03-26T16:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: AddRelatedFeature Url Parameter Error: Foreign key</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/addrelatedfeature-url-parameter-error-foreign-key/m-p/1400979#M8198</link>
      <description>&lt;P&gt;Colin, is there any way to push values into fields for the new related record via the URL? I know this can be done for URLs that launch Survey123 using Field:fieldname=value but this doesn't seem to have any impact when used with the related records in field map URL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Solved!&lt;/P&gt;&lt;P&gt;Never mind, I found the solution in the documentation:&amp;nbsp;&lt;BR /&gt;&lt;A href="https://doc.arcgis.com/en/field-maps/latest/prepare-maps/deploy-your-map.htm#ESRI_SECTION1_F7DE2402BA8743E5BFC4A1241072960E" target="_blank" rel="noopener"&gt;Field Maps - Deploy your map (Open your map from a link)&lt;/A&gt;&amp;nbsp; - f&lt;FONT size="3"&gt;ound under "Initiate updating a feature" section&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;Sample of the expression used to correct curly brackets and include feature attributes, I added colors to help others see the different parts &lt;FONT size="2"&gt;(%22 is html encoding for double quotes)&lt;/FONT&gt;:&lt;BR /&gt;&lt;FONT size="4" color="#000000"&gt;"&lt;/FONT&gt;&lt;FONT color="#FF6600"&gt;https://fieldmaps.arcgis.app/?&lt;FONT color="#008000"&gt;referenceContext&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008000"&gt;=addRelatedFeature&lt;/FONT&gt;&lt;FONT size="4"&gt;&amp;amp;&lt;/FONT&gt;&lt;FONT color="#FF0000"&gt;itemID=0c900ae2a1084d27b608233921ef1a84&lt;/FONT&gt;&lt;FONT size="4"&gt;&amp;amp;&lt;/FONT&gt; &lt;FONT color="#0000FF"&gt;featureSourceURL=https://services9.arcgis.com/QjGvjfQhsHAmqfjP/arcgis/rest/ services/DamageAssessment_Apr2018_631d0895e7d3404bb78e8e04e92d896e/FeatureServer/ 1&lt;/FONT&gt;&lt;FONT size="4"&gt;&amp;amp;&lt;/FONT&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;featureID=&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT size="4"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;+&lt;/SPAN&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;Replace&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Replace&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;globalid&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'{'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;''&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;'}'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;''&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT size="4"&gt;+&lt;/FONT&gt;&lt;FONT size="4"&gt;"&amp;amp;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;foreignKeyField=globalid&lt;/FONT&gt;&lt;/STRONG&gt;&lt;SPAN class=""&gt;&lt;FONT size="4" color="#000000"&gt;&amp;amp;&lt;/FONT&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;featureAttributes=&lt;FONT size="4"&gt;{&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT size="2"&gt;%22&lt;/FONT&gt;&lt;STRONG&gt;incidentid&lt;/STRONG&gt;&lt;FONT size="2"&gt;%22&lt;/FONT&gt;&lt;STRONG&gt;:&lt;/STRONG&gt;&lt;FONT size="2"&gt;%22&lt;/FONT&gt;&lt;STRONG&gt;527&lt;/STRONG&gt;&lt;FONT size="2"&gt;%22&lt;/FONT&gt;&lt;FONT size="4"&gt;&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;%22&lt;/FONT&gt;&lt;STRONG&gt;inspector&lt;/STRONG&gt;&lt;FONT size="2"&gt;%22&lt;/FONT&gt;&lt;STRONG&gt;:&lt;/STRONG&gt;&lt;FONT size="2"&gt;%22&lt;/FONT&gt;&lt;STRONG&gt;Frank&lt;/STRONG&gt;&amp;nbsp;&lt;STRONG&gt;Jones&lt;/STRONG&gt;&lt;FONT size="2"&gt;%22&lt;/FONT&gt;&lt;FONT size="4"&gt;&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;%22&lt;/FONT&gt;&lt;STRONG&gt;inspdate&lt;/STRONG&gt;&lt;FONT size="2"&gt;%22&lt;/FONT&gt;&lt;STRONG&gt;:1502917218285&lt;/STRONG&gt;&lt;FONT size="2"&gt;%22&lt;/FONT&gt;&lt;FONT size="4"&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT size="4" color="#000000"&gt;"&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;This expression is then used as the link URL in the pop-up text box content:&lt;BR /&gt;&amp;lt;p&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;a href="&lt;STRONG&gt;{expression/expr0}&lt;/STRONG&gt; "&amp;gt;Add Inspection&amp;lt;/a&amp;gt;&lt;BR /&gt;&amp;lt;/p&amp;gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 17:10:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/addrelatedfeature-url-parameter-error-foreign-key/m-p/1400979#M8198</guid>
      <dc:creator>DanMakridakis</dc:creator>
      <dc:date>2024-03-26T17:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: AddRelatedFeature Url Parameter Error: Foreign key</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/addrelatedfeature-url-parameter-error-foreign-key/m-p/1516495#M9246</link>
      <description>&lt;P&gt;Hi Colin, Is it possible to pre-populate the geometry in FieldMaps by passing in the geometry in the URLparameters when&amp;nbsp;&lt;SPAN&gt;referenceContext=&lt;/SPAN&gt;AddRelatedFeature (Similar to how addFeature and updateFeature works)?&amp;nbsp; This would be really helpful.&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 08 Aug 2024 03:45:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/addrelatedfeature-url-parameter-error-foreign-key/m-p/1516495#M9246</guid>
      <dc:creator>FeichiShih2</dc:creator>
      <dc:date>2024-08-08T03:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: AddRelatedFeature Url Parameter Error: Foreign key</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/addrelatedfeature-url-parameter-error-foreign-key/m-p/1516765#M9247</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/821527"&gt;@FeichiShih2&lt;/a&gt;&amp;nbsp;, just to clarify, is the related feature you are trying to add another feature layer (not a table)? ie you may have a Feature to Feature relationship? Hypothetically it should be possible but I have not tried it. What happens when you use a link with geometry added in?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 16:01:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/addrelatedfeature-url-parameter-error-foreign-key/m-p/1516765#M9247</guid>
      <dc:creator>ColinLawrence</dc:creator>
      <dc:date>2024-08-08T16:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: AddRelatedFeature Url Parameter Error: Foreign key</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/addrelatedfeature-url-parameter-error-foreign-key/m-p/1580822#M10343</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/362837"&gt;@ColinLawrence&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I too am trying to add a related record but to a related featureclass, not table. Here's my setup:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://xyzxyzx/FeatureServer/" target="_blank"&gt;https://xyzxyzx/FeatureServer/&lt;/A&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&amp;nbsp;is parent FeatureClass&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://xyzxyzx/FeatureServer/" target="_blank"&gt;https://xyzxyzx/FeatureServer/&lt;/A&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&amp;nbsp;is related FeatureClass&amp;nbsp;(related to parent)&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://xyzxyzx/FeatureServer/" target="_blank"&gt;https://xyzxyzx/FeatureServer/&lt;/A&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&amp;nbsp;is related Table (related to parent)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I use Arcade to generate the below URL in my popup within Field Maps:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;&lt;A href="https://fieldmaps.arcgis.app/?referenceContext=addRelatedFeature&amp;amp;itemID=26xxxxxxxxx38&amp;amp;featureSourceURL=https://xyzxyzxyzxyz/FeatureServer/0&amp;amp;featureID=926B718B-99AD-4400-8AF5-72DA05CC647B&amp;amp;foreignKeyField=FEATUREGUID" target="_blank"&gt;https://fieldmaps.arcgis.app/?referenceContext=addRelatedFeature&amp;amp;itemID=26xxxxxxxxx38&amp;amp;featureSourceURL=https://xyzxyzxyzxyz/FeatureServer/0&amp;amp;featureID=926B718B-99AD-4400-8AF5-72DA05CC647B&amp;amp;foreignKeyField=FEATUREGUID&lt;/A&gt;"&amp;gt;&lt;A href="https://fieldmaps.arcgis.app/?referenceContext=addRelatedFeature&amp;amp;itemID=26xxxxxxxxx38&amp;amp;featureSourceURL=https://xyzxyzxyzxyz/FeatureServer/0&amp;amp;featureID=926B718B-99AD-4400-8AF5-72DA05CC647B&amp;amp;foreignKeyField=FEATUREGUID" target="_blank"&gt;https://fieldmaps.arcgis.app/?referenceContext=addRelatedFeature&amp;amp;itemID=26xxxxxxxxx38&amp;amp;featureSourceURL=https://xyzxyzxyzxyz/FeatureServer/0&amp;amp;featureID=926B718B-99AD-4400-8AF5-72DA05CC647B&amp;amp;foreignKeyField=FEATUREGUID&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;This results in the https://xyzxyzx/FeatureServer/&lt;STRONG&gt;2&lt;/STRONG&gt;&amp;nbsp;(related Table) being opened, when really I want&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://xyzxyzx/FeatureServer/" target="_blank"&gt;https://xyzxyzx/FeatureServer/&lt;/A&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;, the&amp;nbsp;related FeatureClass...any way around this?&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2025 15:38:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/addrelatedfeature-url-parameter-error-foreign-key/m-p/1580822#M10343</guid>
      <dc:creator>ahargreaves_FW</dc:creator>
      <dc:date>2025-01-31T15:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: AddRelatedFeature Url Parameter Error: Foreign key</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/addrelatedfeature-url-parameter-error-foreign-key/m-p/1580960#M10345</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/508233"&gt;@ahargreaves_FW&lt;/a&gt;&amp;nbsp;, I am assuming both the feature class (index 1) and table (index 2) are related back to the parent using the same key field? There is a limitation in the addRelatedFeature workflow where it looks for the first layer index with that key and will select that layer to add the related feature when Field Maps opens; this is a known limitation. However, it seems that is not what is happening in your case as it is skipping the feature class and going to the table instead. This sounds like a bug to me. Are you able to present this to technical support?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2025 18:40:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/addrelatedfeature-url-parameter-error-foreign-key/m-p/1580960#M10345</guid>
      <dc:creator>ColinLawrence</dc:creator>
      <dc:date>2025-01-31T18:40:53Z</dc:date>
    </item>
  </channel>
</rss>

