Outage End date Validation in Change Request

JaganN971616731
Tera Contributor

Hi Community,

 

I have a requirement that a validation needs to be added to Outage end date field. The condition is outage end date should be on or before the planned end date of the Change request. If the condition doesn't satisfy an alert message will pop up and make the field blank. Can you help me with the code? 

 

JaganN971616731_0-1718779267466.png

Your response would be appreciated.

 

Regards,

Jagan

5 REPLIES 5

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @JaganN971616731 

 

You can use the UI policy,

 

If Outage.end date > change.plan end date 

 

In script 

Error message, it will be 1 line code.

 

Also one more thing, Outage can be greater than change end date, but plan outage should be less than. So better take a process change and use plan outage instead of outage.

*************************************************************************************************************
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]

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