Aside from Article Validity, what affects the valid to date of article?

Rain Vaine
Kilo Sage

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.

RainVaine_0-1710404970681.png


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"

RainVaine_1-1710405070219.png


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

3 REPLIES 3

Dr Atul G- LNG
Tera Patron
Tera Patron

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]

****************************************************************************************************************

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

James Chun
Kilo Patron

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.

JamesChun_0-1710464682416.png

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