Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Automatically Refresh Agenda Items

-Andrew-
Kilo Sage

Hi all,

 

I'm wondering if anyone could help me potentially create a UI action or business rule to automatically refresh the agenda items in CAB meetings.

I've included a screenshot below where you can see the related link.

 

find_real_file.png

 

Thanks in advance!

1 ACCEPTED SOLUTION

SatheeshKumar
Kilo Sage

Ui action is also an related link, if your need it as a fiorm button just click the form button check box in ui action.

 

if you need make it as a business rule checkk the below link, you will get sufficient details

 

https://community.servicenow.com/community?id=community_question&sys_id=ddb64b65db1cdbc01dcaf3231f96...

 

-satheesh

View solution in original post

8 REPLIES 8

SatheeshKumar
Kilo Sage

Ui action is also an related link, if your need it as a fiorm button just click the form button check box in ui action.

 

if you need make it as a business rule checkk the below link, you will get sufficient details

 

https://community.servicenow.com/community?id=community_question&sys_id=ddb64b65db1cdbc01dcaf3231f96...

 

-satheesh

Steve McCluske1
ServiceNow Employee
ServiceNow Employee

I'd also like to share the code I wrote for a customer. Hope this additionally helps someone.

 

Solution: Create a Scheduled Job to kick-off this script a few hours before the schedule CAB meeting each week. 

 

Use Case: Customer was wanting to automate clicking Refresh the Agenda Items a few hours before actual meeting so when they get into the Meeting record all the items in there are accurate up to a few hours before. 

 

find_real_file.png

var encQuery = 'startONToday@javascript:gs.beginningOfToday()@javascript:gs.endOfToday()^active=true';
var grMeeting = new GlideRecord('cab_meeting');
grMeeting.addEncodedQuery(encQuery);
grMeeting.query();

while (grMeeting.next()) {
    if (grMeeting.getRowCount() == 1) {
        var cabAgendaClass = new sn_change_cab.CABMeeting(grMeeting);
        cabAgendaClass.refreshChangeAgendaItems();
        gs.info('This scheduled job was successful');
    } else {
        gs.error('The Scheduled Job failed for Automate CAB Refresh Agenda Items');
    }
}

Julien Sanchez
Tera Contributor

I was using the solution Steve McCluske1 suggested for this, and it just stopped working without any changes made on my end. I see the jobs are still active but the agenda's stopped being refreshed. Any ideas on why?

Did you upgrade any plugins or go to a newer family release? Can you share your code and what family release you are on?