Aside from Article Validity, what affects the valid to date of article?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-14-2024 01:33 AM
Hello experts,
On the ServiceNow documentation, it says that if Article Validity is blank, the default value for valid to field of an article is January 1, 2100.
https://docs.servicenow.com/bundle/washingtondc-servicenow-platform/page/product/knowledge-managemen...
I was able to verify that the article validity of the knowledge base is blank but the valid to is still not defaulting to "2100-01-01"
Do you know of any possible factor that can affect the valid to aside from Article validity?
How do we set the "valid to" field to default "2100-01-01" value without affecting any workflow or other things?
Regards,
Vaine
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-14-2024 02:08 AM
Hi @Rain Vaine
I dont think, we have other way best is use the workflow /flow but you can try with BR as well.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-14-2024 05:27 PM
Hello,
Is the valid_to field possible to update via a background script? and If so is it a best practice?
Or a scheduled script that can be run on demand just to update the valid to field?
or it is not possible?
Regards,
Vaine
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-14-2024 06:07 PM - edited ‎03-14-2024 06:07 PM
Hey @Rain Vaine,
I can confirm that the KA's 'Valid to' is set to 2100-01-01 per the doc if the KB's Article Validity is empty.
Are you creating a new article or updating an existing one?
A few things that you can check:
- Verify the 'Default value' of the 'Valid to' field. It should be
javascript: current.kb_knowledge_base ? new global.KBCommon().getDefaultValidToDateFromCurrentDate(current.kb_knowledge_base) : '';
- A custom Business Rule on KA table
- Verify if the 'Publish workflow' modifies the 'Valid to' field
Cheers