Select to view content in your preferred language

Email me when a domain’s values are edited

794
6
01-31-2024 03:24 PM
Status: Open
Bud
by
Esteemed Contributor

ArcGIS Pro 2.6.8; Oracle 18c 10.7.1 EGDB:


It would help to have a mechanism that would email me if the values of a domain get modified (new value, existing code/description is modified, or a value is deleted). So that I can update SQL queries and integrations that are based on the domain.

Could that functionality be added to ArcGIS Enterprise?

6 Comments
berniejconnors

Hey Bud,

        I imagine you could create a python script to run on a schedule to read the domain values and compare them to the known values and then take the necessary action to send a notification and update the list of known domain values.

Good luck,

Bernie.

Bud
by

@berniejconnors True, although I’m hoping for an OOTB trigger-like mechanism. Thanks.

berniejconnors

Yes, but there is no better feeling then rolling your own custom solution in python and it works just the way you intended.  I am working on a python script right now.

Dan_Brumm

If this is a hosted feature layer, I think you could use a webhook.  When the domain values are changed that would be an update to the definition and then you could send out an email from there. 

 

Create (Webhooks)—ArcGIS REST APIs | ArcGIS Developers

Bud
by

Yes, but there is no better feeling then rolling your own custom solution in python and it works just the way you intended.  I am working on a python script right now.

I'm jealous. I'm not proficient with Python.

My problem is I only really need it about once per year. So, I pick it up briefly. But then I forget all the syntax and API quirks by the time I need it again. I get frustrated when I try to write my next script.

I'd be interested in seeing what you come up with!

berniejconnors

I was in the same boat as you and only created one or two scripts per year.  But ChatGPT makes it really easy to quickly find all the answers to your Python questions.  No need to Google or search through documentation.

The script I am working on is for monitoring our ArcGIS Server log files.  (ArcGIS Monitor is too expensive).  I found a sample script from Esri that can read messages from the logs.  Then I started asking questions in ChatGPT to help me make the modifications.  Give it a try.

If you have ArcGIS Notebooks in your ArcGIS Enterprise deployment you can write your Python code there and there is a built in scheduler to run your Notebook to check for changes in the domain values.