Duplicate Check across Entities

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • matts
    Junior Member
    • Feb 2025
    • 3

    Duplicate Check across Entities

    Hello,

    is it possible to implement a duplicate check across entities? We have a vast list of Accounts and are adding Leads manually. Is there a way to check whether a lead already exists as an account? And vice versa, when an account is added, to check whether there is a lead with the same name and/or e-mail adress?

    Thank you!
  • yuri
    Member
    • Mar 2014
    • 8801

    #2
    Hi,

    You can utilize API Before-Save script. https://docs.espocrm.com/administrat...e-save-script/

    Though recordService\throwDuplicateConflict won't work here as it assumes the same entity type. You can throw Forbidden instead.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • matts
      Junior Member
      • Feb 2025
      • 3

      #3
      Thank you, I was able to do it this way

      Comment

      Working...