Auto Generate/Refresh CAB Meeting Agenda Items

Instead of making the CAB manager manually go into the CAB meeting configuration to refresh the agenda items

You can create a scheduled job to run before the scheduled start time, and have a script automatically refresh the agenda items.

Here is an example script:

refreshTodayAgendaItems();

function refreshTodayAgendaItems() {
    var cabMeeting = new GlideRecord('cab_meeting');
    cabMeeting.addEncodedQuery("active=true^startONToday@javascript:gs.beginningOfToday()@javascript:gs.endOfToday()");
    cabMeeting.orderBy('start');
    cabMeeting.setLimit(1);
    cabMeeting.query();
    while (cabMeeting.next()) {      
            var cabUtil = new sn_change_cab.CABMeeting(cabMeeting);
            cabUtil.refreshChangeAgendaItems();
            gs.info('Refreshed CAB meeting for today.');
        }
}

Latest Posts