Once device get's deleted from AD update install status as retired in servicenow CMDB_CI_Computer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2024 05:08 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2024 05:28 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2024 09:20 AM
I did look up to that cmdb_ci_computer but i am not getting any option to update install status as retired
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2024 09:26 AM
Please find below flow for your reference
Trigger Condition
Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
Step 7
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2024 11:09 AM
@Ankur Bawiskar please help me on this