Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Script for Duplicate CI Remediation Workflow & Remediate Duplicate Tasks Refresh

SR17
Tera Expert

After a cleanup of our CMDB I am looking to:

1- Refresh all Remediate Duplicate Tasks

Most of Remediate Duplicate Tasks are no longer relevant, lots of old CIs and relationships got retired, archived, deleted. I would like to re-execute de-duplication audit as of a new CMDB. If there is a way to exclude all old tasks and re-process the engine that creates the duplicate tasks, to get only new tasks it would be great. Open to other similar options.

2 - Custom Remediate Duplicate Task Workflow

When there are several de-duplication tasks to go through, then it is possible to automate the remediation task. Using CMDB Remediation Rules and applying a custom workflow would do, but I need a script to use on this workflow. Would anyone be able to share a script to automate the duplicate CI remediation task so that I don't have to go manually through one by one.

3 REPLIES 3

Evan Miller
Tera Contributor

I too would love to see how others have tackled the second question you have. We are in a similar situation in our organization.

AbhishekUpasani
ServiceNow Employee

1. Assuming your CMDB cleanup went fine, if the existing de-duplication tasks are not relevant, you can mark them as "Closed Complete" and re-run the health jobs. This should create new de-duplication tasks with the correct CIs. 

2. Please look out for the De-duplication template feature releasing as a part of SR - CMDB - CMDB Workspace v4.1. This will provide users the ability to group together a set of de-duplication tasks and remediate them in one go.

Abhishek,

I have seen in some documentation where 'Not a Duplicate' has been used to close out a Remediation Task.  Is there a ServiceNow script to close duplicated CI as Not a Duplicate?  
Is there documentation somewhere on how to set up a template to close out Remediation Tasks when the identified CIs are truly not a duplicate?