Announcement

Collapse
No announcement yet.

Relationships between entities and fields.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Relationships between entities and fields.

    I have created 4 new URL custom fields in Entity Manager under Account
    1. Facebook
    2. Twitter
    3. YouTube
    4. LinkedIn

    I would like the 4 fields I’ve created in Account, to be made available to Contact enity in the layout manager. Obviously I can just create them again in Contact, but looking at Relationships link for Contact, is this where I can make the fields I created in Account available to Contact?



  • #2
    Hi,
    create foreign field manually
    custom/Espo/Custom/Resources/metadata/entityDefs/Contact.json


    Code:
           
    {
      "fields": {
           "accountYoutube": {
                "readOnly": true,
                "type": "foreign",
                "link": "account",
                "field": "youtube", 
                "tooltip": false,
                "view": "views/fields/url",
                "isCustom": true
            }
        }
    }

    Comment

    Working...
    X