Docs
  • Solver
  • Models
    • Field Service Routing
    • Employee Shift Scheduling
    • Pick-up and Delivery Routing
    • Task Scheduling
  • Platform
Start Free Trial
  • Field Service Routing
  • More information
  • FAQs
  • Data and integration
  • latest
    • latest
    • 1.40.x
    • 1.39.x

Field Service Routing

  • The basics
    • Introduction
    • Getting started: Hello world
    • User guide
      • Terminology
      • Use case guide
      • Scheduling API concepts
      • Integration
      • Constraints
      • Using the API
        • Using the OpenAPI spec
        • API tooling
      • Demo datasets
      • Input datasets
        • Model configuration
        • Model input
        • Planning window
        • Time zones and daylight-saving time (DST)
      • Maps service
      • Input validation
      • Model response
      • Output datasets
        • Metadata
        • Model output
        • Input metrics
        • Key performance indicators (KPIs)
      • Explaining unassigned visits
      • Key performance indicators (KPIs)
      • Metrics and optimization goals
      • Score analysis
      • Visualizations
      • Efficiency X-Ray
  • Feature guides
    • Vehicle resource constraints
      • Shift hours and overtime
      • Lunch breaks and personal appointments
      • Capacity reservation
      • Fairness
      • Route optimization
      • Technician costs
      • Technician ratings
      • Coverage area
    • Visit service constraints
      • Time windows and opening hours
      • Skills
      • Visit dependencies
      • Multi-vehicle visits
      • Multi-day schedules and movable visits
      • Priority visits and optional visits
      • Visit service level agreement (SLA)
      • Duration added for first visit on location
      • Visit profit
      • Visit requirements and tags
        • Visit requirements
        • Tags
    • Scenarios
      • Configuring labor law compliance
      • Ferry connections
      • Long-running visits
  • Responding to change
    • Manual intervention
    • Recommendations
      • Visit time window recommendations
      • Visit group time window recommendations
      • Bulk time window recommendations
    • Real-time planning
      • Real-time planning: extended visit
      • Real-time planning: reassignment
      • Real-time planning: emergency visit
      • Real-time planning: focused replanning
      • Real-time planning: no show
      • Real-time planning: technician ill
      • Real-time planning: pinning visits
      • Real-time planning: minimizing disruption on replanning
      • Real-time planning: actual arrival and departure times
    • Scenarios
      • Configuring labor law compliance
      • Ferry connections
      • Long-running visits
  • More information
    • FAQs
      • Constraints and weights
      • Modeling your planning problem
      • Planning horizon and replanning
      • Data and integration
    • Changelog
    • Upgrade to the latest version
    • Feature requests
Ask Claude Ask ChatGPT

Data and integration

Answers to common questions about data and integration in the Field Service Routing model.

  • Do I need all my data ready before I start?
  • What data does the model need at minimum?
  • How do I map my data to the model’s terms?
  • What data problems should I look out for?
  • Does Timefold store my data, or do I send everything each time?
  • Should I patch a dataset or send a new one?
  • How should I store plans in my own system?
  • How should I set up tenants and environments?
  • Is there a ready-made integration for my ERP, CRM, or HR system?

Do I need all my data ready before I start?

No. Start with the data you already have, and add more as it becomes available.

Start with the basics: the work to plan, the resources that can do it, and when and where the work happens. Taking this approach also means you will also realize which data should be added next. It will also highlight any data that is missing. The model can already produce useful plans from that.

The model can only apply rules for data you send. For instance, if you don’t send skills yet, the model can’t match skills to work, so it might assign work to someone who can’t do it. Add data such as skills, costs, and preferences one step at a time, and check how each addition changes the plan.

What data does the model need at minimum?

A minimal dataset has:

  • Vehicles, each with an id and at least one shift with its own id, a startLocation, and either a minStartTime or minFirstVisitArrivalTime.

  • Visits, each with an id, a location, and a serviceDuration.

The model doesn’t estimate how long work takes, so send a serviceDuration for every visit. Many organizations use a standard duration for each type of work, and adjust it when they know a visit will take longer.

Everything else is optional, and each piece of data you add lets the model apply more rules, as described in Do I need all my data ready before I start?.

For a complete minimal example, see Getting started.

How do I map my data to the model’s terms?

Map each concept in your data to the closest term in the Field Service Routing model.

Each model has its own terms for the work it plans, such as visits, jobs, or shifts, and for the resources that do the work, such as vehicles, employees, or machines. For instance, a work order or a booking usually becomes a visit, a job, or a shift, depending on the model, and a qualification or certification usually becomes a skill.

Keep your own terms in your product and in your users' screens, and translate them to the model’s terms in your integration. Your users don’t need to learn the model’s terms.

The mapping doesn’t need to be perfect at the start. Map the basics first, and refine the mapping as you add more data, as described in Do I need all my data ready before I start?.

For more information, see Terminology, and the use case guide, which shows how the model’s terms apply to common use cases.

What data problems should I look out for?

Every dataset has some data problems. They’re hard to predict, but easy to spot once you solve your real data.

Common problems include:

  • Values that don’t match: a typo in a skill or a tag means nothing matches it. For instance, one misspelled skill can leave all the work that needs that skill unassigned.

  • Dates and times that are wrong: for instance, a date that defaults to 1 January 1970 can make a resource unavailable for the whole plan.

  • Information in free text: the model can’t read notes that a planner understands, so turn that information into fields the model uses.

  • Skills that are too broad: if a skill covers work that not everyone with the skill can do, the model can assign work to someone who can’t do it.

Many unassigned items, or broken hard constraints, often point to a data problem rather than a planning problem.

Timefold validates every dataset you submit. Invalid JSON, or JSON that doesn’t match the OpenAPI specification, returns 400 Bad Request. Data that doesn’t make sense, for instance a duplicate ID or a reference to something that isn’t in the dataset, returns validation errors or warnings. For more information, see Validation.

Use your real data from the start, rather than building a perfect test dataset. A perfect test dataset only postpones the data problems you’ll meet with real data. Fix data problems before you tune constraint weights. If you need example data, see Demo datasets.

Does Timefold store my data, or do I send everything each time?

Every dataset must contain everything the model needs, because the model only plans from the data in that dataset. For instance, a dataset for replanning includes the current plan, and the rules that apply, such as working-time rules.

There are two ways to provide that data:

  • Send a new dataset: send all the data every time.

  • Patch an existing dataset: send only what changed, for instance an extra visit or an employee who’s unavailable. The platform creates a new dataset from the existing one plus your changes. Patching is in preview.

Timefold Platform stores the datasets you submit, and their results, but only for a limited retention period that depends on your plan. To see your tenant’s retention period, go to Manage tenant → Details. Patching only works while the dataset you patch is still stored. Keep your own systems as the source of truth for your planning data, so you can always build a complete dataset from them.

The configuration profiles you create are stored in your tenant, so you don’t need to send constraint weights with every dataset.

To decide between sending a new dataset and patching, see Should I patch a dataset or send a new one?. For more information, see Handling changes to your planning data and Data retention.

Should I patch a dataset or send a new one?

Patch a dataset for small, targeted changes, and send a new dataset when much of the data has changed.

Patch a dataset when:

  • The change is small, for instance one extra visit, a new shift, or an employee who’s unavailable for an afternoon.

  • You want the model to replan from the existing assignments, to keep changes to the plan small.

  • You want to trace how the plan changed over time, because each patch creates a new dataset linked to the one it came from.

Send a new dataset when:

  • A large part of the data has changed.

  • Your planning period is short and changes are rare.

  • You don’t need to keep the previous assignments.

Either way, include the changes your planners made by hand, and pin them so the model keeps them. If planners make many changes, sending a new dataset built from your own system can be simpler than turning every change into a patch.

Patching is in preview. To get early access, contact us.

For more information, see Handling changes to your planning data and Dataset revisions with /from-patch.

How should I store plans in my own system?

Keep plans at different stages apart, so a new plan never overwrites the plan people are working from. How this is done will depend on your system. One suggestion for how to organize plans is:

  • Draft plans: plans the model returns, which planners can review and change.

  • The active plan: the published plan that people are carrying out. Don’t change it directly. Replan to create a new draft, and publish that instead.

  • Past plans: plans that have been carried out, kept for reporting and analysis.

Move a plan from draft to active only through an explicit publish step in your system, so you control when people see a new plan. Give each plan a status, for instance draft, published, and confirmed, so you can see where every plan is.

To receive plans from Timefold, use webhooks in production, and fetch each plan with its dataset ID when solving completes. Your system then shows the plan to planners and sends it to the people doing the work, for instance as a full schedule, or only the next task in a mobile app.

For more information, see Receiving model API results.

How should I set up tenants and environments?

Use a separate tenant for each environment, for instance one for production, one for testing, and one for development. Each tenant has its own datasets, API keys, webhooks, configuration profiles, and members, so test datasets never mix with production datasets.

On Timefold Cloud, you can group your tenants in an organization. An organization gives each of its tenants a tenant type (Production, Testing, or Development) and applies one plan to all of its tenants. Organization admins set a model release lag per tenant type, for instance to keep the Production tenant one release behind while you validate a new release in the Testing tenant.

If you build Timefold into a product for your own customers, you can use one tenant that all your customers share, or a separate tenant for each customer. The same choice applies to business units or regions.

  • One shared tenant: add configuration profiles for each customer, up to 50 configuration profiles per model. All customers share the tenant’s solve queue and solver threads, and every tenant member sees every customer’s datasets.

  • A tenant for each customer: each customer’s datasets, solve queue, members, API keys, and configuration profiles stay apart. If your organization’s tenant setup includes multiple Production tenants, organization admins add a Production tenant for each new customer themselves, up to the organization’s maximum.

Within one tenant, tag datasets to separate partitions, such as customers, stores, or regions. A webhook can filter on tags to only fire for the datasets of one partition.

For more information, see How the concepts relate, One tenant per end customer or one shared tenant, Manage organization, and Webhooks.

Is there a ready-made integration for my ERP, CRM, or HR system?

There’s no standard connector for ERP, CRM, or HR systems, because every organization configures these systems differently. Even with a standard connector, most of the work would be configuring it for your setup.

If you have specific requirements, contact us.

To integrate your system with the Timefold API:

  1. Turn the data in your system into a dataset, for instance work orders into visits or jobs, and employee records into employees.

  2. Submit the dataset to the model’s API.

  3. Receive the plan, for instance with a webhook.

  4. Write the plan back to your system, for instance as a draft that planners review before they publish it.

Your system stays the source of truth for your planning data, as described in Does Timefold store my data, or do I send everything each time?.

You can build the integration yourself, or work with an integration partner. To find a partner, contact us.

For more information, see API integration and Receiving model API results.

  • © 2026 Timefold BV
  • Timefold.ai
  • Documentation
  • Changelog
  • Send feedback
  • Privacy
  • Legal
    • Light mode
    • Dark mode
    • System default