Loading

Customize the Colors of the Salesforce Field Service Gantt Chart

Data pubblicazione: May 17, 2026
Descrizione

The Gantt Color field (API name: FSL__GanttColor__c, where FSL stands for Field Service Lightning) is a standard text field available on the Service Appointment object in Salesforce Field Service. This field controls the color used to display individual Service Appointments on the Salesforce Field Service Gantt chart, enabling dispatchers to visually differentiate appointments by type, status, or priority.

The field accepts hexadecimal color codes in a specific format: a 6-character hex value prefixed with a hash symbol. For example, the color red-orange is entered as #FF5733, and brown is entered as #873E23. If the value does not match this format exactly, the color does not render correctly on the Gantt.

This field enables visual differentiation of Service Appointments to improve dispatcher visibility and operational efficiency on the Salesforce Field Service Gantt.

Risoluzione

To display custom colors on the Salesforce Field Service Gantt chart, populate the Gantt Color field (API name: FSL__GanttColor__c) on individual Service Appointment records using a valid hexadecimal color code prefixed with a hash symbol, for example: #FF5733 for red-orange or #873E23 for brown.

The field can be populated using the following supported methods:

Method 1: Flow Automation

Use a Salesforce Flow to automatically assign hex color values to Service Appointments based on defined business logic, such as:

  • Service Appointment Status (for example, assign blue for In Progress, green for Completed)
  • Priority level (for example, assign red for high priority appointments)

This is the recommended approach for orgs with a large volume of Service Appointments.

Method 2: Manual Assignment

A user with edit access to the Service Appointment record can manually enter a valid hex color code directly in the Gantt Color field on the Service Appointment record.

Method 3: Apex or Trigger Logic

For advanced or conditional scenarios, Apex code or a trigger can be used to programmatically set the Gantt Color field value. Ensure that the Apex logic enforces the correct hex color format (hash symbol followed by exactly 6 characters) to avoid rendering issues on the Gantt.


Numero articolo Knowledge

000383194

 
Caricamento
Salesforce Help | Article