# What is the purpose of custom color-coding and filtering on the dispatcher console Gantt?

**Topic:** Field Service · **Difficulty:** Medium · **Tags:** Field Service, Gantt Chart, Dispatcher Console

Read it on the site: https://www.forcechallenges.com/interview-questions/what-is-the-purpose-of-custom-color-coding-and-filtering-on-the-dispatcher-console-gantt

## Answer

**Basics:** The Gantt in the Salesforce Field Service dispatcher console shows resources as rows and appointments as bars on a timeline. With dozens of resources and hundreds of appointments it becomes unreadable unless colours carry meaning and filters remove noise. Palettes decide bar colours; filters decide which rows and appointments appear.

**How it works:** In the Field Service Settings (Field Service Admin app), under Dispatcher Console UI, an admin creates Gantt palettes. A palette maps values of a field on the Service Appointment (status by default, or another picklist, or a formula text field) to colours, and there are separate palettes for Resource Absences. Dispatchers pick a palette from the Gantt's menu. Filters are configured under the same area: you choose the fields available for filtering appointments and resources, and dispatchers combine them with territory selection and date range, then save filter sets. Gantt icons can additionally flag conditions such as emergency or pinned work.

**Advanced / deep dive:** Because a palette can use a formula field, you can colour by computed business state such as SLA risk, missed skill match, customer tier, or overdue-by-hours. Keep formulas cheap and cross-object references minimal, since they are evaluated for many appointments on every refresh. Use few, distinguishable colours with a legend; accessibility matters because dispatchers work long shifts and many are colour-blind. Filters interact with the territory selector, so a "missing" resource is often just filtered out. Resource-side filters (skill, resource type, region) are essential for scaling to thousands of resources. Pair palettes with scheduling policy violation indicators and the appointment list, which uses its own configured filter and columns. For large operations, define one palette per dispatcher job: one for status, one for SLA risk, one for travel.

**Code / config example:**
```text
Formula (Text) field on ServiceAppointment: SLA_Risk__c
IF(ISBLANK(DueDate), "No SLA",
 IF(Status = "Completed", "Done",
 IF(DueDate < NOW(), "Breached",
 IF((DueDate - NOW()) < (4/24), "At Risk", "OK"))))

Setup: Field Service Settings > Dispatcher Console UI > Gantt Palettes
  New palette > Field = SLA_Risk__c
  Breached = red, At Risk = amber, OK = green, Done = grey
```

**Hidden gotchas & must-remember points:**
- Palette values must exactly match the picklist or formula output text; a typo leaves bars default-coloured.
- Palettes only read fields on the Service Appointment (or the absence object), so cross-object logic needs a formula or stored field.
- Filters hide resources too, which looks like "technician missing" in support tickets.
- Changing a status picklist value requires updating the palette or its colour is lost.
- Product name is Salesforce Field Service, formerly Field Service Lightning, but menu paths still use the FSL Admin app.
- Too many colours defeat the purpose; keep it to roughly 5 to 7.

**Best practice:** Design palettes around the dispatcher's decisions (what needs action now), publish a documented colour legend, and review it with dispatchers after go-live.

---
Source: ForceChallenges · last updated 2026-11-02
