Is there a way to automatically rename a topic after publishing it?

Raj64
Tera Guru

Hello,

My topics all have a prefix ("XXX YYY"). I know changing the "title" column in the sys_cs_topic table will allow me to display it without the prefix. However, whenever I republish the topic, I have to remember to make this change. Is there an automated way of doing this (by executing a script or workflow)?

Thanks.

1 ACCEPTED SOLUTION

Richard Kiss1
Kilo Guru

Hi Raj,

 

The best option would be to create a before insert/update business rule on the sys_cs_topic table what removes the prefix for you. This way every time you publish something the br would run automatically.

 

Richard

View solution in original post

3 REPLIES 3

Richard Kiss1
Kilo Guru

Hi Raj,

 

The best option would be to create a before insert/update business rule on the sys_cs_topic table what removes the prefix for you. This way every time you publish something the br would run automatically.

 

Richard

Chris D
Kilo Sage
Kilo Sage

But why?

Since you are trying to hide it from the end-user, I have to assume that you just want your topics neatly organized on the back-end...

Heck, even if you didn't want to hide it from the end-user and use that prefix to organize topics on the front-end, either - or both - options are more elegantly accomplished with no code using ootb Categories. See Create or modify custom categories (servicenow.com)

Since you just want them for backend organization, you can just uncheck the option to show the categories in the topic picker. And then VA Designer lets you easily filter by category too.

Thanks Chris.