Duplicate Check across Entities

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

    #1

    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
    EspoCRM product developer
    • Mar 2014
    • 9639

    #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.

    Comment

    • matts
      Junior Member
      • Feb 2025
      • 3

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

      Comment

      Working...