How can I link one entity to another on a specific field

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • murugappan
    Active Community Member
    • Aug 2017
    • 467

    How can I link one entity to another on a specific field

    Currently when i create and entity and link this entity as "many-to-one" to the account entity, it only links based only the Name field (I I can only the name field). How can I link using another field in accounts?
  • yuri
    Member
    • Mar 2014
    • 8444

    #2
    Specify "foreignName": "yourField"

    Example: https://github.com/espocrm/espocrm/b...ecord.json#L78
    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

    • murugappan
      Active Community Member
      • Aug 2017
      • 467

      #3
      Thank you, Yuri. I found the solution. I used the custom code option in the entity definition.

      Comment

      Working...