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.
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:
Flow Automation
Declarative automation was implemented to assign hex color values based on defined logic, such as:
Service Appointment Status
Priority level
Manual Assignment
Users may manually populate the field directly on the Service Appointment record using a valid hex color code.
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.
See Also: Color-Code the Gantt
000383194

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.