Select to view content in your preferred language

Usage of GlobalId field type

296
3
06-30-2023 05:35 AM
Aeseir
by
Occasional Contributor

How do you use the field type global-id when using editor widget to create/updated/delete features?

 

I cannot see any examples on how to apply it appropriately.

0 Kudos
3 Replies
BlakeTerhune
MVP Regular Contributor

The GlobalID field is read-only and managed by the geodatabase. How exactly are you trying to "use" it?

0 Kudos
Aeseir
by
Occasional Contributor

I want to have a unique identifier for each feature, currently ObjectId and GlobalId are the only attributes common across all functions.

0 Kudos
BlakeTerhune
MVP Regular Contributor

That is exactly the purpose of GlobalID. I would recommend against using ObjectID as a primary key field because those can get recalculated. Using GlobalID is a "set it and forget it" kind of thing. Just enable GlobalIDs in your feature class and the geodatabase takes care of the rest. You don't need to create the value yourself.

0 Kudos