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.
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:
Use a Salesforce Flow to automatically assign hex color values to Service Appointments based on defined business logic, such as:
This is the recommended approach for orgs with a large volume of Service Appointments.
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.
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.
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.