Skip to content

Conversation

@maheshkhatal27
Copy link
Contributor

This action utility can be used to identify duplicate records in any CMDB table.
It works dynamically based on the provided field (e.g., name, serial_number, asset_tag, etc.).
Inputs:
tableName – The CMDB table to check.
fieldName – The field used to detect duplicates.
Output:
outputs.duplicate_records = [
{ name: 'Record Name', count: },
... ]

…CMDB table.

 It works dynamically based on the provided field (e.g., name, serial_number, asset_tag, etc.).
@github-actions
Copy link

Valid PR for ActionPack

Thank you for your contribution. This PR complies with the CONTRIBUTING.md.
A maintainer will review this shortly. In the meantime, Happy Hacking!

@rohi-v rohi-v self-assigned this Oct 13, 2025
@rohi-v
Copy link
Contributor

rohi-v commented Oct 13, 2025

Hi @maheshkhatal27

Thank You for your contribution.
Here are my suggestions :

  • Change the field type of TableName from 'String' to 'Table Name'.
  • The Input Fieldname should be validated if it's a valid field against that table.
  • Please add 'Error Evaluation' if Step1 fails.

@maheshkhatal27
Copy link
Contributor Author

Imlpemented the suggested changes let me know if it looks okay to you.

@rohi-v
Copy link
Contributor

rohi-v commented Oct 13, 2025

Looks Good.

Can you please include 'Display Value' as well in the output.

@maheshkhatal27
Copy link
Contributor Author

Added display value as well.

@maheshkhatal27
Copy link
Contributor Author

Been waiting to get this confirmed so that I can add other. Can you approve it?

@rohi-v
Copy link
Contributor

rohi-v commented Oct 14, 2025

Let me check.

You can raise another PR parallely too.

@rohi-v
Copy link
Contributor

rohi-v commented Oct 14, 2025

Looks Good
Thank You for your contribution.

@rohi-v rohi-v merged commit 4b71e23 into ServiceNowDevProgram:main Oct 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants