Is it possible to mass update word wrapped hyperlink in knowledge articles?

kirthi1
Tera Contributor

I have about 500+ knowledge articles where I need to mass update word wrapped hyperlink like the below screenshot.

the hyperlink that is word wrapped here has the wrong link and is not routing to the knowledge article mentioned here in the KB article.

The URL should have been - 

https://service-now.com/kb_view.do?sysparm_article=KB0012707

But is the below link, which is not allowing the users on the portal to see the knowledge article

https://.service-now.com/nav_to.do?uri=%2Fkb_view.do%3Fsysparm_article%3DKB0012707

 

find_real_file.png

Any help is greatly appreciated. 

I am honestly not getting ideas to approach this issue.

6 REPLIES 6

Test is column name for article body.

You will need to provide old URL in below variable.

srcStr 

find_real_file.png

 

Regards,

Sachin

Hi Sachin, 

I appreciate your time and I was able to figure out the script leveraging on the script you added here.