Announcement

Collapse
No announcement yet.

Add Tasks in "Campaigns"

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

  • Add Tasks in "Campaigns"

    Hello everybody,
    we just started to learn about all the functions of EspoCRM but first of all:

    Thanks to everybody who made EspoCRM to such a good CRM Tool! We tried many CRM Tools but at the end of the day the decision was easy. EspoCRM is giving us all the functions that we need. So again Thanks to you all that developed and improved the CRM Tool!

    While we started to use the CRM Tool we also have a question that we could not answer ourselves yet:

    Is it possible in EspoCRM to create also tasks for campaigns such as the function for Contacts, Accounts and Opportunities to also have an overview which tasks have to be done in the campaign. We were thinking that this function would help us a lot especially if we start a big marketing campaign for example. With tasks in the Campaign it would not be necessary to create small tasks with every single contact.

    Thank you very much for you help!

  • #2
    Hello,
    Please try to do this:
    1. Create the file /custom/Espo/Custom/Resources/metadata/clientDefs/Campaign.json with this code:
    Code:
    {
        "sidePanels":{
            "detail":[
                "__APPEND__",
                {
                    "name":"tasks",
                    "label":"Tasks",
                    "view":"crm:views/record/panels/tasks",
                    "aclScope": "Task"
                }
            ],
            "detailSmall":[
                "__APPEND__",
                {
                    "name":"tasks",
                    "label":"Tasks",
                    "view":"crm:views/record/panels/tasks",
                    "aclScope": "Task"
                }
            ]
        }
    }
    2. Create the file /custom/Espo/Custom/Resources/metadata/entityDefs/Campaign.json with this code:
    Code:
    {
        "links": {
            "tasks": {
                "type": "hasChildren",
                "entity": "Task",
                "foreign": "parent",
                "layoutRelationshipsDisabled": true,
                "audited": true
            }
        }
    }
    3. Make Clear cache in Administration
    4. Go in Administartion -> Entity Manager -> Task -> Fields -> Parent -> Entity List -> add Campaign -> Save
    5. Press F5 to reload a web page.
    Last edited by Maximus; 01-22-2020, 08:05 AM.

    Comment


    • #3
      Hey Maximus,
      I just saw that I never replied to your answer! It actually worked the way you described it, thank you very much!

      Comment

      Working...
      X