Announcement

Collapse
No announcement yet.

how create new entity like "Meeting"?

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

  • 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?..

  • #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


    • #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


      • #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 & Founder of Eblasoft.
        Professional EspoCRM development & extensions.

        Comment

        Working...
        X