We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

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