Loading

Customize the Colors of the Salesforce Gantt Chart in Field Service

Julkaisupäivä: Feb 5, 2026
Kuvaus

The Salesforce Gantt Color field (API Name: FSL__GanttColor__c) is a standard Field Service Lightning (FSL) field available on the Service Appointment object. This text field controls the color used to display Service Appointments on the Field Service Gantt.

The field accepts hexadecimal color codes in a strict format: a 6-character hex value prefixed with “#” (for example, #FF5733 or #873E23). If the value does not meet this format, the color will not render correctly on the Gantt.

This field enables visual differentiation of Service Appointments to improve dispatcher visibility and operational efficiency.

Ratkaisu

The Salesforce FSL__GanttColor__c field was configured and utilized to dynamically control Service Appointment colors on the Gantt based on business requirements.

The field can be populated using the following supported methods:

  1. Flow Automation
    Declarative automation was implemented to assign hex color values based on defined logic, such as:

    • Service Appointment Status

    • Priority level

  2. Manual Assignment
    Users may manually populate the field directly on the Service Appointment record using a valid hex color code.

  3. Apex / Trigger Logic
    For advanced or conditional logic, Apex code can be used to programmatically set the field value while enforcing the correct hex color format.

This approach ensures consistent, accurate color rendering on the Gantt and supports scalable, maintainable customization aligned with Field Service Lightning best practices.

Lisäresurssit

See Also: Color-Code the Gantt

Knowledge-artikkelin numero

000383194

 
Ladataan
Salesforce Help | Article