How to validate duplicate check
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Hi everyone,
I’m working on a Service Catalog item (e.g., “Software License Request”) where the user enters a license number.
My requirement is to:
* Check in real-time if the entered license number already exists in the system (e.g., in sc_req_item or a custom table)
* If a duplicate is found, show an error message immediately
* Optionally provide a link to the existing request
I’m planning to use:
* onChange Catalog Client Script
* GlideAjax
* Script Include
My questions:
1. Is this the correct/best approach for real-time validation?
2. Are there any best practices or alternative methods (like Data Policy / Business Rule)?
3. How can I efficiently return the existing record link to display in the message?
Any sample implementation or guidance would be really helpful.
Thanks in advance!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12 hours ago
You can try as below
