Once device get's deleted from AD update install status as retired in servicenow CMDB_CI_Computer

rmishra4395
Tera Contributor

Hello Everyone,

 

I have created a flow where i am calling OOTB action called as "Delete Object" which deletes the object from AD. I want that once the object get's deleted from AD then the install status of that particular cmdb_ci_computer should be as retired.

 

Description:

On cmdb_ci_computer table i have created a UI action named "Remove AD Object" once we click on this button event get's generated and request item for that particular computer get's created and i have created a flow to delete the object from AD so once the object get's get deleted from AD then request item state changes to close complete. also i want to update cmdb_ci_computer install status as retired.

 

 

 

6 REPLIES 6

rmishra4395_0-1724995563113.png

I have added this step to update install status as retired, please let me know if this is correct

You could update it so it doesn't validate on name, but on sys_id, which makes sure you have the correct device (you never if somehow duplicate names get inserted into the system).


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark