<?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: Arcade expression - getting Object ID from another table by the common attribute in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-getting-object-id-from-another/m-p/166583#M8140</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I could figure it out &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;var lookup = $feature.trackID&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;var temp = FeatureSetByName($map,"map_name")&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;var newValue = Filter(temp,&amp;nbsp; 'trackID&amp;nbsp;= @lookup')&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;return Text(newValue.objectid)&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;Cheers,&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 May 2020 23:43:09 GMT</pubDate>
    <dc:creator>KerryKang</dc:creator>
    <dc:date>2020-05-04T23:43:09Z</dc:date>
    <item>
      <title>Arcade expression - getting Object ID from another table by the common attribute</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-getting-object-id-from-another/m-p/166582#M8139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope to find way to retrieve the original object ID of the joined layer(a view layer) through Arcade.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Layer 2&amp;nbsp;is a joined view layer from&amp;nbsp;Layer 1 and Table 1.&amp;nbsp;I need to call the&amp;nbsp;original object ID (Layer 1) inside of Layer 2 in order to pass urls that are created by some sort of combination of the original object IDs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example there are 5 records in&amp;nbsp;Layer 1 from object id 1 to 5. But by joining,&amp;nbsp;Layer 2 became to have 10 rows, and the original object IDs&amp;nbsp;are not preserved in the same way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was thinking about retrieving the original&amp;nbsp;object ID&amp;nbsp;from&amp;nbsp;Layer 1 by using the common attribute called track ID. Tow layers (Layer 1 and 2 are added in the map).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;newValue = Layer1.OID where Layer1.TrackID == Layer2.TrackID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to write Arcade like above? I've been using python mostly so not super familiar with Arcade yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are some challenges -&amp;nbsp; these are dynamic layer - new records are kept added by survey123, so the filed cannot be pre-calcuated by adding a new column. I should be able to extract the original ID on the fly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2020 21:58:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-getting-object-id-from-another/m-p/166582#M8139</guid>
      <dc:creator>KerryKang</dc:creator>
      <dc:date>2020-05-04T21:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade expression - getting Object ID from another table by the common attribute</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-getting-object-id-from-another/m-p/166583#M8140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I could figure it out &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;var lookup = $feature.trackID&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;var temp = FeatureSetByName($map,"map_name")&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;var newValue = Filter(temp,&amp;nbsp; 'trackID&amp;nbsp;= @lookup')&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;return Text(newValue.objectid)&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;Cheers,&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2020 23:43:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-getting-object-id-from-another/m-p/166583#M8140</guid>
      <dc:creator>KerryKang</dc:creator>
      <dc:date>2020-05-04T23:43:09Z</dc:date>
    </item>
  </channel>
</rss>

