Need to populate GUID field programmatically in the feature class

10-02-2019 03:38 PM
New Contributor II


I have web application that consume feature map server from rest endpoint. As the user edited the feature layer -typically as the feature get added/inserted from the webmap, I need to auto-populate attribute field of the feature class in the back end database. For the the GUID field is empty like {0000000-0000-000..} and I want to fill with some random values like {2ABC425..}. Every time when the feature gets added I have to perform field calculator to run the python expression to generate random GUID value in Field. Is there way to do programmatically from back end to achieve this task using python? If it is possible to trigger from the database level would be great too. Attached is the screenshot. 



0 Kudos
0 Replies