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

Mark Manders
Mega Patron

You can do that in the same flow: your requested item is removing the object from AD and reports its success back after which the requested item is closed. If you then just do a simple lookup to the cmdb_ci_computer table for this ci, you can set the install status.


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

I did look up to that cmdb_ci_computer but i am not getting any option to update install status as retired

 

rmishra4395_0-1724948411226.png

 

Please find below flow for your reference

 

Trigger Condition

rmishra4395_1-1724948643707.png

Step 1

rmishra4395_2-1724948674184.png

Step 2

rmishra4395_3-1724948695869.png

Step 3

rmishra4395_4-1724948712970.png

Step 4

rmishra4395_5-1724948729591.png

Step 5

rmishra4395_6-1724948746230.png

Step 6

rmishra4395_7-1724948767169.png

Step 7 

rmishra4395_8-1724948789907.png

 

 

@Ankur Bawiskar please help me on this