Select to view content in your preferred language

Add GUID field to existing AGOL Survey123 feature layer — Field not auto-populating?

448
11
a week ago
Bud
by
Legendary Contributor

I have a Survey123 feature layer that was created using the Survey123 wizard.

I need a custom auto-populated unique ID field, so I've added a GUID field using AGOL > Data > Fields. This is the resulting field:

Bud_0-1777056938401.png

Problem:

When I create new features in an Experience Builder app using the Editor widget, the new GUID field is not being populated. Why isn't it being populated?

Use Case: 

Auto-populate unique ID field in hosted feature layer (common ID between copy/pasted features in ExB...
I need a custom unique ID field so the values will be copy/pasted into a new feature in a different feature layer. The ExB editor widget matches fields in the source layer (the Survey123 layer) with fields in the destination layer, where the field names are an exact match. I can't use the OOTB OBJECTID or GlobalID fields from the source layer, because the destination feature will get new values in those fields, not the values from the source feature.

0 Kudos
11 Replies
Bud
by
Legendary Contributor

Auto-populated GUIDs via NEWID() function — In web map, display a more intuitive value in the Edit tool

https://community.esri.com/t5/arcgis-online-ideas/auto-populated-guids-via-newid-function-in-web-map...

 

0 Kudos
Bud
by
Legendary Contributor

Based on comments in Support for Attribute rules in ArcGIS Online:

@Allison_Hockey  @IvanKozoletov1  @PaulBarr  @RichardLittlefield  @KevinMayall  @CalvinHarmin  @LeviCecil might find this post interesting.

 

You might also like Expression field in view using AGOL UI.

 

Also:

Since you mentioned Survey123 if you are using Connect, there is uuid() function you can use to populate a unique id

https://community.esri.com/t5/arcgis-online-questions/auto-populate-unique-id-field-in-hosted-featur... 


And Understanding Relationship Classes in ArcGIS Online Hosted Feature Services