how create new entity like "Meeting"?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • VikinGDM
    Member
    • Feb 2019
    • 92

    how create new entity like "Meeting"?

    Hello,
    how create new entity like "Meeting"
    OR how to add approval functionality to an custom entity?
    Maybe, I still do not understand how signals work in BPM?..
  • Andorxor
    Member
    • May 2019
    • 65

    #2
    Create a entity of type event
    Add it to calendarentities in the config
    Add a relationship to contacts named contacts
    Add a relationship to users
    Add the following to custom/Espo/Custom/Ressources/metadata/clientDefs/[Your Entity].json :
    PHP Code:
     "sidePanels": {
            "detail": [
                {
                    "name": "attendees",
                    "label": "Attendees",
                    "view": "crm:views/meeting/record/panels/attendees",
                    "sticked": true,
                    "isForm": true,
                    "notRefreshable": true
                }
            ],
            "detailSmall": [
                {
                    "name": "attendees",
                    "label": "Attendees",
                    "view": "crm:views/meeting/record/panels/attendees",
                    "sticked": true,
                    "isForm": true,
                    "notRefreshable": true
                }
            ],
            "edit": [
                {
                    "name": "attendees",
                    "label": "Attendees",
                    "view": "crm:views/meeting/record/panels/attendees",
                    "sticked": true,
                    "isForm": true,
                    "notRefreshable": true
                }
            ],
            "editSmall": [
                {
                    "name": "attendees",
                    "label": "Attendees",
                    "view": "crm:views/meeting/record/panels/attendees",
                    "sticked": true,
                    "isForm": true,
                    "notRefreshable": true
                } 
    

    Comment

    • VikinGDM
      Member
      • Feb 2019
      • 92

      #3
      After update this code I get error:
      Code:
      /client/custom/src/controllers/test2.js?r=1582717727:1 Failed to load resource: the server responded with a status of 404 (Not Found)
      folder "/client/custom" is empty
      Maybe, i need create or copy other files?

      Comment

      • eymen-elkum
        Active Community Member
        • Nov 2014
        • 472

        #4
        I have made post regarding this request, hope it can help,

        As we know EspoCRM already support four entity types (structure templates) for now: • Base. • Base Plus • Person. • Company.But sometimes you may need to clone an existing entity including all related functionalities. For example you may want to duplicate the "Meeting" or "Call" ones, or even to duplicate custom entities definitions you made by your hand from one crm to another or in the same crm.Let's say we want to clone the "Meeting" entity as example to a new entity names "Lesson",- Create t
        CEO of Eblasoft
        EspoCRM Expert since 2014
        Full Stack Web Developer since 2008
        Creator of Numerous Successful Extensions & Projects​

        Comment

        Working...