Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Changing the (cab automation) meeting notes?

Shawn Gienow
Tera Guru

By default, the auto-generated meeting notes look like the following:

(CAB Automation) - CHG00123456 - Approved - John Smith - 12:31:12 - US/Eastern

We would like to change them to something like:

(CAB Automation) - CHG0030216 - Assignment Group - Risk -  Change Short Description - Approved - Approver - 12:31:12 - US/Eastern

However, I cannot for the life of me find where this automation takes place.   Has anyone worked with this previously?

Thank you!

1 ACCEPTED SOLUTION

Shawn Gienow
Tera Guru

Naveen.. thank you for helping with this 🙂 

Here's what I ended up with, and it did exactly what I need:

updateAgendaDecisions: function(agr, prevGr) {

var decision = '';
if(agr.state == CAB.AGENDA_STATE.NO_DECISION) {
decision = agr.state.getDisplayValue();
}else if((agr.decision != prevGr.decision) && (agr.decision == CAB.AGENDA_DECISION.APPROVED || agr.decision == CAB.AGENDA_DECISION.REJECTED)) {
decision = agr.decision.getDisplayValue();
}else
return;
var session = gs.getSession();
var gdt = new GlideDateTime();
var str = gs.getMessage("(CAB Automation) - {0} - {1} - {2} - {3} - {4} - {5} - {6} - {7}", [agr.task.getDisplayValue(), agr.task.assignment_group.getDisplayValue(), agr.task.risk.getDisplayValue(), agr.task.short_description, decision, gs.getUserDisplayName(), gdt.getUserFormattedLocalTime(), session.getTimeZoneName()]); var autoText = "<p>" + str + "</p>";
this._gr.agenda_decisions_buffer = this._gr.agenda_decisions_buffer + "" + autoText;
this._gr.update();
}

View solution in original post

11 REPLIES 11

Ian22
Tera Contributor

so how do you change CABAgendaItemSNC as it is read-only based on its protection policy.

So I assume you have to take a copy?

Daniel Peel
Mega Sage

*** I realize this is old... but since I don't see mention of it and the date on the Script Include predates this question... and I went looking for how to find what was creating the notes.  

There is a customization point script include called CABAgendaItem you can recreate that method in and modify as you need.  Your method will override the one in the SNC version.  This is how MANY script includes OOB are constructed, not all but many.