From 5ec122e0726693f2cb0168663ccf72dd7b96c13d Mon Sep 17 00:00:00 2001 From: Sumanth Dosapati Date: Thu, 9 Oct 2025 19:06:11 +0530 Subject: [PATCH 1/3] Create README.md --- .../Background Scripts/Update KB Article Author/README.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 Server-Side Components/Background Scripts/Update KB Article Author/README.md diff --git a/Server-Side Components/Background Scripts/Update KB Article Author/README.md b/Server-Side Components/Background Scripts/Update KB Article Author/README.md new file mode 100644 index 0000000000..6d2fa2a27d --- /dev/null +++ b/Server-Side Components/Background Scripts/Update KB Article Author/README.md @@ -0,0 +1,3 @@ +This script can be used to update the KB Articles author via script. +This will be helpful in cases such as Author leaving the company, etc. +Update the encoded query in Line 2 to filter the required kb articles. From c9a28e31563bf0b57a7b28b7349156ec02364a22 Mon Sep 17 00:00:00 2001 From: Sumanth Dosapati Date: Thu, 9 Oct 2025 19:06:39 +0530 Subject: [PATCH 2/3] Update README.md --- .../Background Scripts/Update KB Article Author/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Server-Side Components/Background Scripts/Update KB Article Author/README.md b/Server-Side Components/Background Scripts/Update KB Article Author/README.md index 6d2fa2a27d..e1a1344321 100644 --- a/Server-Side Components/Background Scripts/Update KB Article Author/README.md +++ b/Server-Side Components/Background Scripts/Update KB Article Author/README.md @@ -1,3 +1,5 @@ This script can be used to update the KB Articles author via script. + This will be helpful in cases such as Author leaving the company, etc. + Update the encoded query in Line 2 to filter the required kb articles. From 2864c446e27ad7c78aebf2c869a561243002e3cc Mon Sep 17 00:00:00 2001 From: Sumanth Dosapati Date: Thu, 9 Oct 2025 19:08:31 +0530 Subject: [PATCH 3/3] Create script.js --- .../Background Scripts/Update KB Article Author/script.js | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 Server-Side Components/Background Scripts/Update KB Article Author/script.js diff --git a/Server-Side Components/Background Scripts/Update KB Article Author/script.js b/Server-Side Components/Background Scripts/Update KB Article Author/script.js new file mode 100644 index 0000000000..5cec38c67c --- /dev/null +++ b/Server-Side Components/Background Scripts/Update KB Article Author/script.js @@ -0,0 +1,8 @@ +var kbGr = new GlideRecord("kb_knowledge"); +kbGr.addEncodedQuery("author=62826bf03710200044e0bfc8bcbe5df1"); //Update this filter as required +kbGr.query(); +while(kbGr.next()) +{ + kbGr.author = '6816f79cc0a8016401c5a33be04be441'; //Update with new Author details + kbGr.update(); +}