Customizing Colors in the Resource and Project Planners
You can use up to eight
in Resource Planner and Project Planner to identify types of assignment and resource request. In Project Planner, you can also use these colors to identify categories of project in the project summary bars. This enables you to make resourcing decisions faster and more efficiently.Setting up Color Coding
To set up color coding:
- Create custom fields for the objects Assignment, Resource Request, and Project, as needed.
- Add formulas to the custom fields, using the colors. This helps to automate the process of using colors for objects.
- Edit custom settings for the planners. This enables the use of the colors with the objects.
- Add the text to the color labels associated with the colors that you have used. This text identifies the type of information shown by each color, and is shown in the color legend in each planner.
For information about formula fields, see “Calculate Field Values With Formulas†in the Salesforce Help and “Use Formula Fields†in Salesforce Trailhead.
To create custom fields and formulas:
- In Setup, open the Objects page.
- In the Custom Objects list, click the name of the object: Assignment, Resource Request or Project.
- In the Custom Fields & Relationships list, click New to create a new field. A wizard opens.
- Select Formula, and then click Next.
- Enter a field label. The field name will be populated automatically.
- Select Text as a formula return type, and then click Next.
- Enter your formula, and then click Next.
You must enter color names without spaces in formulas, but they are not case sensitive. Examples: LightBlue, lightgreen, lightRed. A formula will not work if you include spaces in the color name.
- Complete the wizard settings.
Example formula for a Project object
Example formula for an Assignment object
The next step is to enable the colors to be used in the relevant planners for the functions that you created in the custom fields formulas.
To edit custom settings:
- In Setup, open the Custom Settings page.
- Click Manage for the relevant planner settings:
Planners - Resource
Planners - Project - Click Edit.
- Enter the API names of the custom fields that you created for the color settings in the following fields:
- For Resource Planner and Project Planner, complete the fields Assignment Color Field and Resource Request Color Field.
- For Project Planner, also complete the field Project Summary Color Field.
- Select the checkboxes for the colors that you have used in the formulas.
The next step is to add label definitions for the colors that you are using.
To enable the functionality to add label definitions:
- In Setup, open Translation Workbench.
- Click Enable.
- Click Add.
- Add English and any other required languages, and the users/translators for those languages, as needed. The users will be the only people who can edit the label definitions for the colors.
To find these labels quickly, create a list view that contains a filter for "LegendName".
To add or update labels for colors used for assignments, resource requests and projects in the planners:
- In Setup, open the Custom Labels page.
- Select each label that corresponds to a color that you are using for the relevant planner:Project Planner labels:
projplanner_PlannerScheduler_Beige_LegendName
projplanner_PlannerScheduler_Light_Blue_LegendName
projplanner_PlannerScheduler_Light_Green_LegendName
projplanner_PlannerScheduler_Light_Red_LegendName
projplanner_PlannerScheduler_Light_Yellow_LegendName
projplanner_PlannerScheduler_Pink_LegendName
projplanner_PlannerScheduler_Purple_LegendName
projplanner_PlannerScheduler_Turquoise_LegendName
Resource Planner labels:resplanner_PlannerScheduler_Beige_LegendName
resplanner_PlannerScheduler_Light_Blue_LegendName
resplanner_PlannerScheduler_Light_Green_LegendName
resplanner_PlannerScheduler_Light_Red_LegendName
resplanner_PlannerScheduler_Light_Yellow_LegendName
resplanner_PlannerScheduler_Pink_LegendName
resplanner_PlannerScheduler_Purple_LegendName
resplanner_PlannerScheduler_Turquoise_LegendName
- In the Local Translations/Overrides section, click New Local Translations/Overrides if no translation exists, or Edit for an existing translation. The Translation Edit page opens.
- If new, select the language, and then enter the text to be used for the label.
If editing, enter the text to be used for the label.
- Click Save.
- Repeat steps 3-5 to add other labels.
The label definitions associated with the colors are displayed in a color legend for the relevant planner.
Click in Resource Planner or Project Planner to open the color legend. This button does not display when you have not configured any colors.