You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Stop the Save Event if Duplicate record is found

Received Response
47
Views
4
Comments
edited Mar 30, 2018 10:41AM in Agent Desktop 4 comments

Content

Hi,

We have a requirement where During Record creation if  the current record's certain fields concatenated values are already present in some other record i.e if duplicate record is found, we have to cancel the save event and not save the record.

The above problem statement has to be achieved in Browser UI using javascript, 

After referring the documentation of BrowserUI Extensibility Framework: http://documentation.custhelp.com/euf/assets/devdocs/unversioned/BUI_Extensibility/topicrefs/EventHandler.html

We found that we can use parameter.getCurrentEvent.cancel() on WorkspaceRecord.addRecordSavingListener(), but we are getting an error as Uncaught (in promise) TypeError: parameter.getCurrentEvent.cancel is not a function

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!