Create folders and run processes every 5 minutes

Recipe ToolsMarketingDocument/File

What it does

When the clock triggers every 5 minutes, this automation creates folders in Onprem Files for each center. It then calls the employer and participant main processes asynchronously so both run in parallel across all locations.

Who it's for

Operations teams who need to run center processes on a regular schedule across multiple locations.

How teams use this

Process multiple centers on schedule

Run the employer and participant processes for all centers every 5 minutes without manual triggers. The automation handles folder creation and process execution for each location.

Add a new center to the rotation

Include a new center in the Centers list so it gets its own folder and both processes run for it on the same 5-minute schedule. Set the center name in the list to activate it.

Adjust the schedule frequency

Change the clock trigger to run every 10 minutes or 1 hour instead of 5 minutes to reduce how often processes execute. The folder creation and process calls remain the same.

How it works

  1. Run on a 5-minute schedule. The automation starts every 5 minutes so all centers are processed at regular intervals without manual intervention.
  2. Create folders for each center. For each center in the list, create a new folder in the specified on-prem folder location so files are organized by center.
  3. Call employer and participant processes. Run the employer main process and participant main process asynchronously for each center so both workflows execute in parallel.