Outage End date Validation in Change Request
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2024 11:48 PM
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?
Your response would be appreciated.
Regards,
Jagan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2024 06:28 AM
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]
****************************************************************************************************************