Select to view content in your preferred language

Can you add a global ID field to an AGOL hosted feature service?

9705
5
Jump to solution
01-30-2018 03:35 PM
MStayner
Occasional Contributor

I have several hosted feature services already published to ArcGIS Online. I know I can download them, add a global ID in Arc Map then republish. Is it possible to add a global ID directly to a hosted feature service?

0 Kudos
1 Solution

Accepted Solutions
MJBiazar
Esri Contributor

Enabling sync for the hosted feature layer will add a GlobalID field to the hosted feature layer.

View solution in original post

5 Replies
shan_sarkar
Frequent Contributor

Global ID is a database table property and can be enabled in ArcGIS Desktop/ArcGIS Pro (Add Global IDs—Help | ArcGIS Desktop ). Once the fields have been added you need overwrite the hosted service.

I hope this helps!

~Shan


~Shan
0 Kudos
MJBiazar
Esri Contributor

Enabling sync for the hosted feature layer will add a GlobalID field to the hosted feature layer.

Amanda__Huber
MVP Regular Contributor

Hi @MJBiazar

Are you referring to this Sync setting? I'm not seeing GlobalID information in the documentation.

https://doc.arcgis.com/en/arcgis-online/manage-data/manage-editing-hfl.htm#:~:text=Enable%20editing%...

0 Kudos
MJBiazar
Esri Contributor

Hi @Amanda__Huber yes, if your layer is published without global id field, enabling sync in the feature layer settings in ArcGIS Online creates global id field in all layers in your feature layer. 

You are correct! This is not mentioned on our documentation and I encourage you to submit a documentation feedback for this. 

Thank you

Amanda__Huber
MVP Regular Contributor

Great! Thank you, I just submitted after testing. 

Best, 

Amanda Huber

0 Kudos