Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2019 03:25 PM
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.
Solved! Go to Solution.
1 ACCEPTED SOLUTION

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2019 06:50 PM
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
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2019 06:50 PM
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