Assignment of duplicate lead

Hi,

I don’t think its easy to be created on Workflow (I might be wrong on that one)
Now, with logichooks I see at least two ways to do it.

  1. Using a before_save logic hook You try to load a bean using the name current bean’s name. If the system returns at least one, then you will now wich one it is and from there you can load the reationships
    https://docs.suitecrm.com/developer/working-with-beans/

  2. The other way (and maybe more reliable) is to query directly into the DB to get all records with the same name. From there you will be able to recover the relationship and add it to the current record.
    Check this sample were I use queries.
    Adding autoincremental number / date / unique number to name

Hope it helps.