web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Color Code Service Calendar

(0) ShareShare
ReportReport
Posted on by 115

Hello,

I'm trying to color code the service calendar to give appointments, service activities and time off different colours.  I've found the below link but I can't see to get anything to change.

I also tried to change the \CRMWeb\SM\Gantt\style\GanttControl.css file and change the colors there but again I can't get any appointmetns/service activities to change color on the calendar.  

Any help with this would be great, thanks!

msdn.microsoft.com/.../gg309501.aspx

*This post is locked for comments

I have the same question (0)
  • AppJetty Profile Picture
    1,019 on at
    RE: Color Code Service Calendar

    Hello,

    I suggest one all-in-one calendar which is a combination of all types of calendars. In Dynamics 365 Calendar you can manage the different activities in a different color also you can filter activities according to their statuses and priorities i.e. Open, Scheduled, Canceled, etc., and also to contacts, accounts as well as other modules related to accounts and contacts.

    Activity_2D00_Filtration.png

    also, you can go to this document for detailed information: https://www.appjetty.com/blog/color-code-dynamics-calendar/

  • Suggested answer
    Karth Profile Picture
    on at
    RE: Color Code Service Calendar

    This blog article might help.

    community.dynamics.com/.../microsoft-crm-2011-2013-colorizing-service-calendar.aspx

  • Jeembo Profile Picture
    20 on at
    RE: Color Code Service Calendar

    Oh, I should also mention that the web resource Display Name MUST be AppointmentBookConfig.  I tried with a different name in a different environment and it didn't work until I changed the display name.  The "Name" (i.e. new_servicecalendarcss) doesn't seem to matter - just the display name.  Weird.

  • Jeembo Profile Picture
    20 on at
    RE: Color Code Service Calendar

    Figured out how to color the 'time off' part of the calendar.

    div.ganttRowSelectOff

    {

    background-color: #333333;

    }

  • Jeembo Profile Picture
    20 on at
    RE: Color Code Service Calendar

    You probably have this answered, but you basically just need to create a CSS web resource and override the existing classes.  In the link you posted, they screwed up the class name (it's either ganttBlockAppointmentStatus4 or ganttBlockServiceActivityStatus4 - you can see these in the ISV Config customizations.xml file), but it would make appointments/service activities on the calendar that are in status 4 (Canceled for Appts or Reserved for Svc Activities) a gray gradient (#CEC7BD-#848284).

    div.ganttBlockAppointmentStatus4

    {

    border: 1px solid #848284;

    FILTER: progid:DXImageTransform.Microsoft.Gradient(gradientType=0,startColorStr=#CEC7BD,endColorStr=#848284);

    }

    As far as I can tell, the GanttControl.css file isn't used anymore.  I'm still trying to figure out how to color the time off vs work hours and will report back if I can figure it out.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Community Member Profile Picture

Community Member 2

#2
Christoph Pock Profile Picture

Christoph Pock 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans