Different Link Fields Account / Lead

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • iconberg
    Senior Member
    • Oct 2015
    • 103

    #1

    Different Link Fields Account / Lead

    Hello,

    we have an own entity linked to account, this works fine, this provides the desired link field with the name of the account.
    Now we have linked our entity to lead too, this works also fine, but instead of the account name of the lead is linked with the name of the person.

    Can we change this?

    sincerly
  • tanya
    Senior Member
    • Jun 2014
    • 4308

    #2
    Hello,
    you can create a foreign field for this relation (better way), or you can try to override _getName method in custom Entities folder

    Comment

    • iconberg
      Senior Member
      • Oct 2015
      • 103

      #3
      Originally posted by tanya
      Hello,
      you can create a foreign field for this relation (better way), or you can try to override _getName method in custom Entities folder
      https://github.com/espocrm/espocrm/b...ities/Lead.php
      Thanks for the quick answer. I take a look at the _getName.
      I already tried a foreign field, but that field as a link gives the entity which contains the foreign field, not the foreign entity, which is desired.

      Comment

      Working...