The Import Records tool (import_records.py) can be used with Task Scheduler to update incident layer on a regular interval. Scheduled updates will ensure users have access to current information to support more dynamic decision-making.
To update incident data on a schedule, complete the following steps:
- Open Task Scheduler.
- Click Action > Create Task and name your task.
- Click the Actions tab and click New.
- Set Action to Start a Program.
- Browse to the location of your Python installation (for example, <default directory>\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python.exe).
- In the Add arguments text box, type the name of the script (import_records.py) followed by the pathname of the configuration file in double quotes.
- In the Start in text box, type the pathname of the folder hosting your script and click OK.
- On the Trigger tab, click New and set a schedule for your task and click OK.