And among these big set of feature release, sometimes very subtle yet powerful changes gets overlooked. One of that is the availability of extra metadata attribute called ‘Color’ for an optionset field. Not sure how many of you noticed it, but CRM now comes with an additional option of specifying the color for each option item in the optionset.
So let’s see how this field can be used.
The first thing to notice here is that you can specify the color code for each of the option items in hexadecimal value. For example – I have taken here the priority optionset and added three different colors for the three option items
High – Red
Normal – Green
Low – Blue
I save and publish the customization changes. These colors will be actually used in the interactive service dashboards. If you are not aware of the interactive service hub for CRM 2016, you can view the MSDN Documentation for the same by following the below link.
I have customized the Dashboard for interactive service hub to show a bar chart of cases by priority. You can access the interactive service hub for your organization by typing in the url in the format
When I opened the engagement hub for my organization, I can see the chart displayed with the colors I specified for each of the High, Low and the medium values.
Isn’t it cool? Just thinking how can you use it more. Well if you have some external application which reads data from the CRM and shows some chart, you can probably read the optionset metadat, get the color code and render the chart with the same code in CRM.
Hope this helps!