Restrict Child Incidents related list from creating more than 1 Child
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2024 09:08 AM
Hello all,
I have a requirement to restrict each Parent Incident to 1 Child Incident. If there is already a Child Incident in a Parent then an error message displays when attempting to use the "New" and "Edit" buttons on the related list saying "This Incident already has 1 Child Incident."
Thank you!
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2024 09:40 AM
Create a business rule for Incident table that would:
- run when Parent field changes
- execute a GlideRecord query to check if there already is a child incident for that parent
- abort the update transaction if that is the case
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/