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.

How to Separate KB Author using email script

Jeck Manalo
Tera Guru
Hi Everyone, 

I tried to get all inactive user which is KB Author using email script.
 
my question is how can we separate the authors and send 1 notification to appropriate KB owner.
 
this notification will be sent out to KB Owner so its should be separate sending since some KB has different KB owner.
JeckManalo_1-1715839668506.png

 


 

var getKB = new GlideRecord('kb_knowledge');
    getKB.addQuery('author.active', false);
    getKB.query();

    while(getKB.next()){
        //var article = getKB.number.getDisplayValue();
        template.print(getKB.number.getDisplayValue() + " " + getKB.author.name.getDisplayValue() + '<br/>');
    }
0 REPLIES 0