Back to workFileMaker

Automatic Technician Scheduling

A FileMaker engine that picks the right field technician for each job, checking skills, region, time off and the day’s schedule, and fills the next working day’s jobs in one run on FileMaker Server.

FileMakerSchedulingGoogle Maps API
Overview

A security services company sends field technicians to jobs across New York and New England, and every job is scheduled and dispatched from FileMaker. I built the engine that assigns those technicians automatically. Given a job’s location, scope of work and scheduled date, it finds every technician who can take it, ranks them by distance from home, and assigns as many as the job needs, either one job at a time or the next working day’s whole schedule in a single server run.

01

Problem

Dispatchers assigned a technician to every job by hand, keeping track themselves of who could do the work, who was off, who already had a full day and which part of the map each tech was working. Nothing checked those choices, and there was no record of why one tech got a job over another.

02

Approach

Built the assignment as a set of FileMaker scripts around thirteen checks. The job’s date and coordinates go into global fields, so each technician’s distance, stops for the day and restrictions are calculations evaluated against that job. A ray-casting test places the job inside the regions dispatchers draw on a map, technicians are ranked by straight-line distance from home, and the first ones to pass every check are assigned. Each assignment is logged with the reason every closer tech was skipped.

03

Result

Dispatchers can fill a single job with one button, or every pending job for the next working day with another, and any job the batch can’t fill comes back by email with the reason. Techs are only given work they’re qualified and available for, and every assignment, automatic or manual, is recorded with how it was made.

My role

I designed and built the automatic assignment: the qualification checks and ranking, the region lookup, the next-day batch, reassignment when a job changes, and the assignment log. It plugs into the job screens, scheduling calendar and region map that were already part of the FileMaker solution.

What a technician has to pass

Every candidate is checked against the job, and the first check a tech fails is logged as the reason they were skipped.

  • Right skills: the job’s scope of work is one the tech is set up to do.
  • Active technician: an active user with the Technician or Subcontractor role.
  • Not off: no time off logged for the job’s date.
  • Room in the day: stops are counted by location, so several jobs at one site count once. An all-day job needs an empty day, a half-day job needs fewer than four stops, or fewer than three if the tech already has a half-day job, and any other job needs fewer than eight.
  • Not already committed: not on an all-day job, a project or a planned job route that day.
  • No clash: no job at another location within a set number of hours either side of this job’s time. The buffer lives in the system preferences, and jobs at the same site never clash.
  • Allowed in the area: the job isn’t in a region the tech is barred from, and if the tech’s day is already tied to a region, the job is inside it.
  • Not already on the job: a tech currently on the job is skipped, but one who was dispatched on an earlier visit can be picked again.
  • A usable home location: the tech needs a geocoded home address to be ranked.

Ranking and picking

  • Search, then sort: a find narrows the team to active technicians with the right scope of work who aren’t off that day, then sorts them by straight-line distance from home to the job, with anyone missing a home location last.
  • First to pass wins: the script walks down that list running every check and stops once it has as many techs as the job needs.
  • Return visits: a job waiting on parts goes back to the last tech who worked it instead of the nearest one.
  • Nothing half done: if fewer techs qualify than the job needs, no one is assigned and the reason is reported, either in a dialog or in the batch’s summary.

Regions on the map

  • Point in polygon: dispatchers draw regions on a Google map inside FileMaker, each stored as a list of coordinates. A ray-casting test written as a FileMaker script finds every region the job’s coordinates fall inside.
  • A tech’s day stays in one area: when a tech is given a job with a set time, the smallest region that job falls in, measured by area, is stamped on the assignment. For the rest of that day they’re only eligible for jobs inside that region.
  • Barred regions: a tech can be kept out of regions entirely.
  • Region tiers: each tech has primary, secondary, tertiary and emergency regions, and every assignment records which of those the job was in for that tech.
  • Coordinates when needed: a job’s address is geocoded through the Google Geocoding API when it’s entered or changed, and again by the batch for any job still missing coordinates.

The next-day batch

  • One run for tomorrow: a button on the scheduling calendar hands the batch to FileMaker Server, which works through every job pending dispatch for the next working day. On a Friday that covers Saturday and Monday, and a holiday pushes it a day further.
  • Only jobs that are ready: a job is skipped if it already has a tech, has been dispatched and not yet visited, or has no location or scope of work. A job another user has open is skipped too, rather than fighting them for the record lock.
  • Same-site jobs together: jobs are sorted by location and scope, so jobs at one site run back to back.
  • A report on what’s left: if any job couldn’t be filled, the office gets an email listing each one with the reason, and the dispatcher who started the run gets a summary in FileMaker when the server finishes.

Keeping assignments right

  • Re-picked when a job changes: saving a job with a new location or scope of work removes the auto-assigned techs who haven’t been dispatched yet and picks the same number again. Techs a dispatcher added by hand stay where they are.
  • Careful deletes: before removing anyone, the script confirms it’s looking at only that job’s auto-assigned records, never more than it expected and never the whole table.
  • Manual picks use the same search: when a dispatcher assigns a tech by hand, the picker runs the same region and skills search, so it lists technicians who can do the work and aren’t off that day. Users with full access can still see the whole team.

The assignment log

  • Every assignment recorded: automatic or manual, each one writes a log entry with the tech, job, location, how it was made and which of the tech’s region tiers the job was in.
  • Why not the closer tech: automatic assignments also store every higher-ranked tech who was passed over, with the result of each check, their job count at that moment and the reason they were skipped. When someone asks why a job went to a tech further away, the answer is in the log.

Running on the server

  • One script, two places: the single-job button and the batch run the same assignment script. On the server, dialogs are switched off and every failure comes back as JSON for the batch to collect.
  • Out of the way: the technician search runs in a tiny hidden window, so the dispatcher’s screen doesn’t move, and the global fields that drive the calculations are cleared on every exit.

Automatic Technician Scheduling Discuss a similar project →

© 2026 Grant Gonzalez

Built with FileMaker & the web in mind