Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Find and Replace Function for KB Articles or Bulk Update Process?

Mike Clemons
Tera Expert

Greetings! My org has a need to change a product name from "X" to "Y" and we need that to go live on a particular day. Rather than having to go through 1,400 KB articles and manually update the terminology with a scheduled publish date for the new version - I'm wondering if anyone has gone through something like this before and needed to update a large number of KB articles like this and if there is a better and less manual way to accomplish this? Maybe using an AI Agent or something? Any thoughts?

2 REPLIES 2

JulietChicago
Tera Guru

Previously, the development team created a script to automatically replace the old term with the new one. System administrators were not required to check out or republish the article. Since the product did not have a scheduled publish date at the time, we simply executed the script on the go-live day.
Afterward, we manually reviewed and spot-checked the most-popular articles to ensure their quality. These were then published manually. Knowledge blocks feature may help here as well.

Swapna Abburi
Mega Sage
Mega Sage

Hi @Mike Clemons 

You can create a flow with trigger type or a scheduled job (schedule it to run once at the date and time of your go-live).

You can use 'replaceAll' JavaScript method in the script to replace product name in all KB articles in bulk without a need to republish.