AX2531

Using file watcher to trigger imports

You can use the Scheduler "file watcher" functionality to automatically trigger imports. To do this, you specify a folder to watch and an associated event handler. When a new or modified file is detected in that folder, the associated event is raised and any Scheduler jobs using that event will be run. A reserved variable can be used in the import task to import the file that raised the event.

NOTE: The presumed use case for file watcher is to trigger imports for execution, however, the event handler can be used to trigger any Scheduler job.

Use of file watcher requires the following setup steps:

  • Defining the file watcher folder and associated event name. You can define any number of folders to watch. File watcher folders are defined per system.
  • Configuring the Scheduler import job to use the file watcher event name and to process the file in that folder.