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 12:10 AM
You Can write a before insert/Update BR on Outage Table.
Modify the conditions accordingly
Example :
There are few OOTB BR's with similar logic, please check:
https://dev12345.service-now.com/nav_to.do?uri=sys_script.do?sys_id=d002d015c7121300628953c6f0976301
Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2024 12:16 AM
Hi Rohila,
Unable to open the link. Could you please provide kind of screenshots?
Regards,
Jagan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2024 06:22 AM
It is a dummy Link with the path, replace dev12345 with your instance details.
You can also refer the screenshots I attached.
Here is the example:
Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2024 12:29 AM
You can write the ui policy to do this comparision. Please check the link below
Please mark it as helpful or solution accepted