Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

Unauthorised Change Request event : ci.change.unplanned

priyanshij
Kilo Guru

Does anybody know how or from where the event ci.change.unplanned is triggered in case any update is done on ci which is an application service without any change related to it ?

15 REPLIES 15

Gabriel3
Giga Contributor

For who, like me, want to test this feature/event, just run in background script, changing the first values:

var ciClass = 'cmdb_ci_apache_web_server';
var ciSysId = '557a35851bd349509854eca0f54bcb17';
var changes = {
    updatedFields: [
        { fieldName: 'serial_number', oldValue: 'X1FA08', newValue: 'EA897ES' },
        { fieldName: 'os', oldValue: 'Linux', newValue: 'Linux Ubuntu' },
    ]
};

var gr = new GlideRecord('sysevent');
gr.initialize();
gr.setValue('name', 'ci.change.unplanned');
gr.setValue('descriptive_name', 'CI Change Manual Test');
gr.setValue('user_name', 'admin');
gr.setValue('user_id', '6816f79cc0a8016401c5a33be04be441');
gr.setValue('instance', ciSysId);
gr.setValue('table', ciClass);
gr.setValue('parm1', ciSysId);
gr.setValue('parm2', JSON.stringify(changes));
gr.insert();