Preserve GlobalIDs when Adding Features to Feature Service

580
2
03-06-2019 05:01 AM
PatrickFilyer
Occasional Contributor II

I am just wondering if there is a way to preserve global id's when adding features to a feature service using the arcgis api for python?

Both features (one stored in an egdb and the feature service) have a global id field but the global id is different between features after adding them using the edit_features method.

Thanks.

2 Replies
by Anonymous User
Not applicable

I believe you can use edit_features and set use_global_ids=True to accomplish this. You can read more about this in the REST API doc for the applyEdits endpoint. The layer you are adding features to must advertise supportsApplyEditsWithGlobalIds=True.

PatrickFilyer
Occasional Contributor II

Thanks, I'll give this a try. 

0 Kudos