What would it take to do the following in a Python script? (script to be run weekly on a server as a Windows scheduled task)
- For each .LYRX layer file in a network folder
- The layer file is based on an Oracle EGDB query layer that has a WHERE clause.
- If the query layer returns any rows in the attribute table
- Then send an email to me with the details.
For example:- Subject: Issues found in OutOfDateConstructionProjects.LYRX
- Body: Records were found in the OutOfDateConstructionProjects.LYRX query. Please investigate.
The assumption being my IT department will be able to set up SMTP.
ArcGIS Pro 3.1. ArcGIS Notebook Server is not an option.
I’m inexperienced with Python. So any help would be appreciated.