Display Contact relationship/role to another Entity

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ssinghnc
    Junior Member
    • Jan 2019
    • 1

    Display Contact relationship/role to another Entity

    Hello everyone,

    I'm working off a fresh install of Espo V5.5.5

    I noticed that when I create an Opportunity and assign a Contact, I can pick an opportunityRole for the Contact.
    See https://www.screencast.com/t/ZafKgVPm


    I have a custom entity called Company and I want to do something similar. Everytime I add a new Contact to the company, I want to add a companyRole.
    However I'm not given the option.
    See https://www.screencast.com/t/d7G0p7nshq9x

    Can someone point me to how to setup this relationship?

    Thanks in advance.

    SS


  • rodrigocoelho
    Active Community Member
    • Jun 2016
    • 296

    #2
    I have the same wish. Did you get an answer? Thanks.

    Comment

    • Maximus
      Senior Member
      • Nov 2018
      • 2731

      #3
      Hi.
      Please investigate a code to define how it works.
      1. EspoCRM/application/Espo/Modules/Crm/Resources/metadata/entityDefs/Opportunity.json
      2. EspoCRM/client/modules/crm/src/views/opportunity/fields/conracts.js

      Comment

      Working...