Entity Creation

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jaguir Khan
    Junior Member
    • Nov 2019
    • 10

    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
  • Maximus
    Senior Member
    • Nov 2018
    • 2731

    #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

    • Jaguir Khan
      Junior Member
      • Nov 2019
      • 10

      #3
      Thanks a lot code is working.

      Comment

      Working...