Announcement

Collapse
No announcement yet.

Entity Creation

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

  • Entity Creation

    In Entity creation I have to add Email and phone fields?
    It is not passable to add the Fields in base type entity creation only person type Entity creation is available Email and Phone Fields. As I am wanted Email and Phone Fields in Base Type Entity Creation

  • #2
    Hello,
    You need to add them manually. Please investigate how these fields are defined in the ./application/Espo/Modules/Crm/Resources/metadata/entityDefs/Contact.json file. Example:
    Code:
    "emailAddress": {
                "type": "email",
                "isPersonalData": true
    },
    "phoneNumber": {
                "type": "phone",
                "typeList": ["Mobile", "Office", "Home", "Fax", "Other"],
                "defaultType": "Mobile",
                "isPersonalData": true
    },
    Add this code to the ./custom/Espo/Custom/Resources/metadata/entityDefs/Your-Entity.json file and make a system rebuild via the Administration menu. After, go to Administration -> Layout Manager and add these fields to the layout.

    Comment


    • #3
      Thanks a lot code is working.

      Comment

      Working...
      X