Skip to content

Conversation

@at8807602
Copy link
Contributor

Added a background script to automatically retire all published Knowledge Articles related to the IT Knowledge Base, ensuring outdated or irrelevant IT content is properly archived and improving overall knowledge base hygiene.

This code will help to retire the knowledge articles in bulk.
Added a background script to automatically retire all published Knowledge Articles related to the IT Knowledge Base, ensuring outdated or irrelevant IT content is properly archived and improving overall knowledge base hygiene.
@snamjosh snamjosh self-assigned this Oct 10, 2025
Copy link
Contributor

@snamjosh snamjosh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a typo in first line of your script.
it should be var article = new GlideRecord("kb_knowledge");
Please test your code before creating a PR.

@at8807602
Copy link
Contributor Author

Hello @snamjosh ,

Thanks for highlighting the type error. I have fixed that error also tested the script, it is working as expected. Hence, I request you to please approve this request.

@snamjosh snamjosh merged commit 99b9a19 into ServiceNowDevProgram:main Oct 11, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants