Restrict CI insert/update in CMDB when operational status is 'Retired'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-11-2023 09:34 AM
I need to restrict CI's insert/update in CMDB when the Operational status is 'Retired' from a CI. For this i tried writing a business rule on condition 'Operational status' is 'Retired' and abort the action, however it doesnot work, even when i update the operational status from 'Operational' to 'Retired' then also it gives the error and cannot update the CI operational status to retired.
why the Business rule fail when the Operational status is still 'operational' and not updated to 'Retired' still gives an invalid update error.
Can someone suggest? what is the best approach to restrict ci insert on Retired Operational status?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-11-2023 09:39 AM
Hi @Nishant16
Why not you use UI policy and make the field read only at retire as status.
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]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-11-2023 09:50 AM
hi Atul
I want to restrict all/any updates to the CI when the operational status is Retired, so that if any CI which is Terminated on Azure, discovering in Servicenow can also be aborted on insert.
This is where the BR is failing and i cant seem to figure out
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-11-2023 10:49 AM
Thanks for clarification @Nishant16 . In this case ,as data updated by other system BR is best option.
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]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-11-2023 09:39 AM
try condition Operation Status changes to "Retired"