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

Notifications

Announcements

No record found.

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)
  • Jeembo Profile Picture
    20 on at

    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.

  • Jeembo Profile Picture
    20 on at

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

    div.ganttRowSelectOff

    {

    background-color: #333333;

    }

  • Jeembo Profile Picture
    20 on at

    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.

  • Suggested answer
    Karth Profile Picture
    on at

    This blog article might help.

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

  • AppJetty Profile Picture
    1,019 on at

    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/

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans