How to configure the CAB Workbench Calendar?

kylereed
Kilo Contributor

I'm looking to alter the CAB Workbench Calendar to not display 'Cancelled' meetings. We found a workaround where we could create a business rule to remove the Planned start/end date when the state changes to 'Cancelled' but I was a bit stumped since I couldn't find any files that were related to the creation and automation of the CAB Workbench. There aren't any configuration modules either. The URL for the CAB calendar doesn't provide any hints either...  https://company.service-now.com/cab?id=cab_calendar

 

Does anyone know where to find these configuration files? Are they script includes, business rules, UI pages? I couldn't find anything to even change the branding shown in the CAB workbench to show our companies name. Instead it show's ServiceNow with a different color scheme that our end-users aren't familiar with.

I found a SN webinar and read a few blog posts by developers, but both were aimed at how to use the existing functionality of the CAB Workbench.

Any help is appreciated!

10 REPLIES 10

Lewis Chi
ServiceNow Employee
ServiceNow Employee

Can't say this will be that helpful:


/sys_script_include.do?sys_id=9b001f20eb00220034d1eeea1206fef6



- Lewis Chi


rohantyagi
ServiceNow Employee
ServiceNow Employee

Hi Kyle, there are some script includes that we shipped with CAB workbench. Please take a look at this document and check for the CAB related script includes in your instance.


Script includes installed with CAB workbench



JasonOcchialini , do you have more info on this?


Nirupam Biswas
ServiceNow Employee
ServiceNow Employee

Hi Kyle,



For your first requirement to filter out Canceled meeting you need to override CABMeeting script include. You need to change its code to following:-




var CABMeeting = Class.create();
//Pull in namespaced functions.
CABMeeting.newMeeting = CABMeetingSNC.newMeeting;
    CABMeeting.prototype = Object.extendsObject(sn_change_cab.CABMeetingSNC, {
                                                                initialize: function(_gr, _gs) {
                                                                if (_gr) {
                                                                                                _gr.addQuery('state', '!=', 'canceled');
                                                                                                _gr.query();
                                                                }
                                                                CABMeetingSNC.prototype.initialize.apply(this, arguments);
                                },
                                      type: 'CABMeeting'
});

The bolded part is the new code. The script includes with SNC suffix are not meant to be modified but their non-SNC suffixed counter parts are.



The second requirement to change the logo can be done from Portal page. Goto /nav_to.do?uri=sp_portal.do?sys_id=0d3fa8649f131200b18a7feea57fcf7a. You can change the Logo image from there.


I modified the Script include as example and works, but now the CAB Meetings cannot be updated. The script worked in the CAB Workbench but disable the functionality of the CAB meetings.