Automate import updates

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:

  1. Open Task Scheduler.
  2. Click Action > Create Task and name your task.
  3. Click the Actions tab and click New.
  4. Set Action to Start a Program. Edit Action options
  5. Browse to the location of your Python installation (for example, <default directory>\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python.exe).
  6. 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.
  7. In the Start in text box, type the pathname of the folder hosting your script and click OK.
  8. On the Trigger tab, click New and set a schedule for your task and click OK.
Top