- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2020 04:43 AM
I have set 'Valid To' date on Knowledge article to 1 year after publish and it is auto populating when I create a new Knowledge article.But if I reject the retire/republish the article Valid To field is setting to 01-01-2100.
I can see there is a Article Validity field on Knowledge base form, is this field causing the issue? If yes how to set a value on this field.
Can someone help how to fix this?
Immediate help would be highly appreciated.
Thanks
Solved! Go to Solution.
- Labels:
-
Knowledge Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2020 06:09 AM
Hi
Digging into ServiceNow is fun! Read this one for even more details:
One more information, that may come in handy in this scenario.
The screenshot below shows the Script Include "KBCommonSNC" with the function "getDefaultValidToDateFromDate()". This function return "2100-01-01" (HARDCODED) (1) when the field "article_validity" on the KB Base Record is empty (2), and returns the date added with the number of days in that field (3) if it is not empty.
Let me know if that answers your question and mark my answer as correct/helpful, please.
Thanks and enjoy
BR
Dirk

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2020 05:16 AM
Hi
Try to review this article, please:
https://hi.service-now.com/kb_view.do?sysparm_article=KB0781937
Let me know, if that answered and solved your issue by marking my answer correct/helpful, please.
BR
Dirk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2020 05:38 AM
Hi Dirk,
No. Issue is I don't want to set valid_to to 01/01/2100 at any stage. I always want Valid To to be populated with the value which I have set(i.e., 1 year from the date of Publish)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2020 05:45 AM
Which value do you have set in the Knowledge Base Header Record in the field "Article Validity"?
Is that field empty for your knowledge base (see my answers below)?
BR
Dirk

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2020 05:40 AM
Hi
Also review the following info on Docs online:
I guess on your Knowledge Base, the field "Article Validity" will be empty, which defaults articles to 01.01.2100 (see above).
The field can be found on the header record of EACH Knowledge Base (see screenshot below):
In the "Article Valididy" field, enter the number of days for your articles to live before they get retired.
This also seems to be the valid value, when retiring and republishing your articles.
Read the docs online at:
Let me know, if that solves your question, please.
BR
Dirk