how to do bulk update on knowledge Article Auther and SME.

surajjha
Tera Contributor

KA without Author and SME ,  Author and SME will be required fields so  all empty needs to be updated.

Please update Author with - ABC person(USER) and SME with XYZ person(Another USER). 

can someone pls help with FIX\BACKGROUND SCRIPT to update 1000 records.

Thanks in advance.

1 ACCEPTED SOLUTION

sachin_namjoshi
Kilo Patron
Kilo Patron

Use below fix script,

 

var kb = new GlideRecord('kb_knowledge');
kb.addEncodedQuery('authorISEMPTY');// update query as per your requirement
kb.query();
while(kb.next()){


kb.author = "SYS_ID_OF_USER";
kb.update();

}

 

Regards,

Sachin

View solution in original post

1 REPLY 1

sachin_namjoshi
Kilo Patron
Kilo Patron

Use below fix script,

 

var kb = new GlideRecord('kb_knowledge');
kb.addEncodedQuery('authorISEMPTY');// update query as per your requirement
kb.query();
while(kb.next()){


kb.author = "SYS_ID_OF_USER";
kb.update();

}

 

Regards,

Sachin