Restrict CI insert/update in CMDB when operational status is 'Retired'

Nishant16
Tera Expert

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.

Nishant16_0-1702315933126.png

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?

10 REPLIES 10

Dr Atul G- LNG
Tera Patron
Tera Patron

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]

****************************************************************************************************************

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

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]

****************************************************************************************************************

Abhijit
Tera Expert

try condition Operation Status changes to "Retired"