Knowledge articles are getting retired once the updated version is retired

Roxi1
Tera Contributor

We are implementing a functionality to set the kb state as "Retired" for the articles which "valid to" date is passed.

we faced an issue that after setting the retired state to valid to passed article, the related version also getting retired.

this should not happen. Thanks in advance

1 ACCEPTED SOLUTION

AnubhavRitolia
Mega Sage
Mega Sage

Hi @Roxi1 

 

So Knowledge Article Retirement flow happens from Workflow "Knowledge - Retire Knowledge".

In this flow it calls Script Include 'KBWorkflowSNC' and function retireKnowledge(). As this is SNC protected so you cannot update it. But you can understand this and accordingly create your custom Script Include and use it.

 

Also, If your related Versions of KB Articles are also having same date as 'Valid to' it will run for same. You can verify by checking 'Show Workflow' related list to check if separate workflow is tagged to separate versions.

Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.

Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023

View solution in original post

1 REPLY 1

AnubhavRitolia
Mega Sage
Mega Sage

Hi @Roxi1 

 

So Knowledge Article Retirement flow happens from Workflow "Knowledge - Retire Knowledge".

In this flow it calls Script Include 'KBWorkflowSNC' and function retireKnowledge(). As this is SNC protected so you cannot update it. But you can understand this and accordingly create your custom Script Include and use it.

 

Also, If your related Versions of KB Articles are also having same date as 'Valid to' it will run for same. You can verify by checking 'Show Workflow' related list to check if separate workflow is tagged to separate versions.

Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.

Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023