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 10:26 PM
I have added this step to update install status as retired, please let me know if this is correct
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2024 11:24 PM
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