<?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: Auto-populate unique ID field in hosted feature layer (common ID between copy/pasted features in ExB) in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/auto-populate-unique-id-field-in-hosted-feature/m-p/1698421#M68521</link>
    <description>&lt;P&gt;From a comment in&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-online-questions/add-guid-field-to-existing-agol-survey123-feature/td-p/1698341" target="_blank" rel="noopener"&gt;Add GUID field to existing AGOL Survey123 feature layer — Field not auto-populating?&lt;/A&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;GUID fields don't autopopulate, they default to null.&amp;nbsp; They're typically up to the application or an editor to set.&lt;/P&gt;&lt;P&gt;You could make a hidden field in your S123 form for the question and use the uuid() function to populate it.&lt;/P&gt;&lt;P&gt;Alternatively, you can use the Admin REST API to create the field with a NEWID() default value, with the Add to Definition endpoint of the layer.&amp;nbsp; It may be possible to update an existing field's default value with this as well, but I haven't tried it.&amp;nbsp; This will make the field autopopulate with a new value in the same way that Global IDs are autopopulated:&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;PRE&gt;{
  "fields":
  [
    {
      "name" : "MyID", 
      "type" : "esriFieldTypeGUID", 
      "alias" : "My ID", 
      "sqlType" : "sqlTypeOther", 
      "length" : 38, 
      "nullable" : false, 
      "editable" : false, 
      "domain" : null, 
      "defaultValue" : "NEWID() WITH VALUES"
    }
  ]
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 25 Apr 2026 03:43:27 GMT</pubDate>
    <dc:creator>Bud</dc:creator>
    <dc:date>2026-04-25T03:43:27Z</dc:date>
    <item>
      <title>Auto-populate unique ID field in hosted feature layer (common ID between copy/pasted features in ExB)</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/auto-populate-unique-id-field-in-hosted-feature/m-p/1698244#M68508</link>
      <description>&lt;P&gt;In &lt;U&gt;Experience Builder &amp;gt; editor widget&lt;/U&gt;, I am &lt;A href="https://community.esri.com/t5/arcgis-experience-builder-questions/copy-features-function-missing-from-experience/m-p/1688083/highlight/true#M22669" target="_self"&gt;manually copying features&lt;/A&gt; from layer1 into layer2. Layer1 is a Survey123 hosted feature layer.&lt;/P&gt;&lt;P&gt;I want there to be a common ID between the two features so I can know what the layer1 source feature was for the layer2 destination feature.&lt;/P&gt;&lt;P&gt;Is there a way to auto-populate a unique ID field in layer1 in AGOL?&lt;BR /&gt;For example, is there a way to automatically populate a custom ID field in layer1 with the OBJECTIDs? My assumption is that OBJECTIDs can't be copy/pasted into new features, but values from a custom ID field can.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Related Experience Builder Idea:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-experience-builder-ideas/field-mapping-for-copying-pasting-features-using/idi-p/1698255/highlight/true" target="_self"&gt;Field mapping for copying/pasting features using Editor widget&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2026 16:33:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/auto-populate-unique-id-field-in-hosted-feature/m-p/1698244#M68508</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2026-04-24T16:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: Auto-populate unique ID field in hosted feature layer (common ID between copy/pasted features in ExB)</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/auto-populate-unique-id-field-in-hosted-feature/m-p/1698248#M68510</link>
      <description>&lt;P&gt;Right now I have a similar use-case and I am using a scheduled Notebook to assign UUID's after a feature is created.&lt;BR /&gt;&lt;BR /&gt;If there's a way to get this to automatically populate on creation I'd love to know!! But I wasn't able to find it in my initial research when I set this up a while back....fingers crossed maybe I just missed something and it's actually possible?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2026 13:58:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/auto-populate-unique-id-field-in-hosted-feature/m-p/1698248#M68510</guid>
      <dc:creator>Katie_Clark</dc:creator>
      <dc:date>2026-04-24T13:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: Auto-populate unique ID field in hosted feature layer (common ID between copy/pasted features in ExB)</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/auto-populate-unique-id-field-in-hosted-feature/m-p/1698268#M68511</link>
      <description>&lt;P&gt;I've submitted an idea:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-online-ideas/auto-incrementing-integer-field-at-agol-feature/idi-p/1698266/highlight/true" target="_self"&gt;Auto-incrementing integer field (at AGOL feature layer level)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Apr 2026 18:24:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/auto-populate-unique-id-field-in-hosted-feature/m-p/1698268#M68511</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2026-04-25T18:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: Auto-populate unique ID field in hosted feature layer (common ID between copy/pasted features in ExB)</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/auto-populate-unique-id-field-in-hosted-feature/m-p/1698270#M68512</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/351335"&gt;@Bud&lt;/a&gt;&amp;nbsp;Since you mentioned Survey123 if you are using Connect, there is&amp;nbsp;&lt;SPAN&gt;uuid() function you can use to populate a unique id&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also, there should be GlobalID in your Survey123 layer (layer1) already that you could copy to layer 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformformulas.htm" target="_blank"&gt;https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformformulas.htm&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2026 15:11:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/auto-populate-unique-id-field-in-hosted-feature/m-p/1698270#M68512</guid>
      <dc:creator>Neal_t_k</dc:creator>
      <dc:date>2026-04-24T15:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: Auto-populate unique ID field in hosted feature layer (common ID between copy/pasted features in ExB)</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/auto-populate-unique-id-field-in-hosted-feature/m-p/1698286#M68513</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/763693"&gt;@Neal_t_k&lt;/a&gt;&amp;nbsp;&amp;nbsp;Thanks for the info about Connect! I don't have experience with it. I will look into it.&lt;/P&gt;&lt;HR /&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;Also, there should be GlobalID in your Survey123 layer (layer1) already that you could copy to layer 2&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;I've wondered about this too. The ExB copy/paste functionality seems to copy/paste into fields that have exactly the same field name.&lt;BR /&gt;However, as far as I can tell, the destination feature gets a different/new GlobalID, not the GlobalID from the source feature. So I think I'm out of luck here.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm not aware of a way to "field map" the source GlobalID to a custom destination field like ORIGINAL_GLOBALID.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Experience Builder Idea: &lt;A href="https://community.esri.com/t5/arcgis-experience-builder-ideas/field-mapping-for-copying-pasting-features-using/idi-p/1698255/highlight/true" target="_self"&gt;Field mapping for copying/pasting features using Editor widget&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Apr 2026 18:25:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/auto-populate-unique-id-field-in-hosted-feature/m-p/1698286#M68513</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2026-04-25T18:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: Auto-populate unique ID field in hosted feature layer (common ID between copy/pasted features in ExB)</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/auto-populate-unique-id-field-in-hosted-feature/m-p/1698421#M68521</link>
      <description>&lt;P&gt;From a comment in&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-online-questions/add-guid-field-to-existing-agol-survey123-feature/td-p/1698341" target="_blank" rel="noopener"&gt;Add GUID field to existing AGOL Survey123 feature layer — Field not auto-populating?&lt;/A&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;GUID fields don't autopopulate, they default to null.&amp;nbsp; They're typically up to the application or an editor to set.&lt;/P&gt;&lt;P&gt;You could make a hidden field in your S123 form for the question and use the uuid() function to populate it.&lt;/P&gt;&lt;P&gt;Alternatively, you can use the Admin REST API to create the field with a NEWID() default value, with the Add to Definition endpoint of the layer.&amp;nbsp; It may be possible to update an existing field's default value with this as well, but I haven't tried it.&amp;nbsp; This will make the field autopopulate with a new value in the same way that Global IDs are autopopulated:&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;PRE&gt;{
  "fields":
  [
    {
      "name" : "MyID", 
      "type" : "esriFieldTypeGUID", 
      "alias" : "My ID", 
      "sqlType" : "sqlTypeOther", 
      "length" : 38, 
      "nullable" : false, 
      "editable" : false, 
      "domain" : null, 
      "defaultValue" : "NEWID() WITH VALUES"
    }
  ]
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Apr 2026 03:43:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/auto-populate-unique-id-field-in-hosted-feature/m-p/1698421#M68521</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2026-04-25T03:43:27Z</dc:date>
    </item>
  </channel>
</rss>

