Duplicate check for linked field

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shalmaxb
    Senior Member
    • Mar 2015
    • 1602

    Duplicate check for linked field

    It seems, that it is not possible to create a duplicate check, if the field is of type multiple link. Is there any way to implement that?
  • lazovic
    Super Moderator
    • Jan 2022
    • 809

    #2
    Hi shalmaxb,

    Perhaps these examples may be useful: https://docs.espocrm.com/administrat...icate-checking.

    Comment

    • shalmaxb
      Senior Member
      • Mar 2015
      • 1602

      #3
      Unfortunately I did not get it to work. This solution asks for a recordService, which I don`t know, where and how to implement.

      Comment


      • lazovic
        lazovic commented
        Editing a comment
        You don't need to create anything new, this is built-in formula functionality that will be available in EspoCRM 7.5.

        Please describe exactly how the duplicate check should work for you and with what links/relationships/field types, and I will try to create a suitable formula for you.

      • shalmaxb
        shalmaxb commented
        Editing a comment
        lazovic, thank you for your nice offer. I have another thread, where I attached a graphic for my entities:
        To better understand, which is my problem, I attached an image to explain. I have three entities: Object, History and History Stations I want to create a history of an object, which gets some data from the entity objects (where all objects are stored) and from another entity, called history stations, where every record


        The only thing I changed there already is the n:n relationship, it is a 1:n now. But ther is the problem with the one-to-one relationship where I would like to have the linked record duplicate checked.
        I hope, it is understandable, what I wrote.
    • shalmaxb
      Senior Member
      • Mar 2015
      • 1602

      #4
      lazovic

      I solved that problem by duplicate check. Will not prevent from creating a duplicate, but the alert message appears.
      The solution was to get rid of the one-to-one relationship and using a 1:n instead. I made the duplicate check on top of the linkedFieldId and that worked.

      Thank you again for you help and a fat kudos to espoCRM!

      Comment

      Working...