Hi unbeatable,
You need to retrieve the records based on your criteria using WebApi.retrieveMultipleRecords. If you find any data, then u need to set formNotification like what u did earlier.
Good luck!
I want to write Javascript code for detecting duplicate record and the field is a lookup field for detecting duplicate record
I want to write code, please help with Javascript
Hi,
why don't you use OOB Duplicate detection rule to achieve your requirement instead of writting custom code?
if (entityText == entityText) {
formContext.ui.setFormNotification("Duplicate Record Found.", "INFO");
}
Above code does not make sense. You are comparing the same variable. please tell your exact requirement so that we can help you?
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,235 Most Valuable Professional
nmaenpaa 101,156