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.

How to validate duplicate check

Devi-01
Kilo Explorer

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!

0 REPLIES 0