query on how to limit the records in Business rules.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2024 08:15 PM
Hi,
I have a scenario like below:
for one CI we have to create only one active change request, if the change request is cancelled or closed then we can create a change for the CI. After creating the first change we have to stop the creation of change. how to achieve this scenario using Business rules ?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2024 08:27 PM
from where are you creating the Change? Is it from UI action?
If yes then you can have condition in UI action
If not then you can use before insert BR on CHG table and see if there is any other CHG which is open for this CI; if yes then abort the insertion
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader