Adding Emails to custom module

Hello,

I just created a new custom module (basic) and now I want to add an Emails sub-panel to it. Since Emails is not a module, do you have an idea how to add? We have it our Account module and I would like to re-create in our new custom module.

Thanks!

Ada

Parents
  • Hi Ada

    You can simply add the Emails module and then create the relationships.

    1. Create a folder called 'Emails' for instance

    2. Create a manifest.php file (code snippet below) and paste into tjhe 'Emails' folder

    <?php
    /*
     * Your installation or use of this SugarCRM file is subject to the applicable
     * terms available at
     * http://support.sugarcrm.com/06_Customer_Center/10_Master_Subscription_Agreements/.
     * If you do not agree to all of the applicable terms or do not have the
     * authority to bind the entity as an authorized representative, then do not
     * install or use this SugarCRM file.
     *
     * Copyright (C) SugarCRM Inc. All rights reserved.
     */
    
    // THIS CONTENT IS GENERATED BY MBPackage.php
    $manifest = array (
      'built_in_version' => '10.0.4',
      'acceptable_sugar_versions' =>
      array (
        0 => '',
      ),
      'acceptable_sugar_flavors' =>
      array (
        0 => 'ENT',
        1 => 'ULT',
      ),
      'readme' => '',
      'key' => 'Test',
      'author' => 'ME',
      'description' => 'Add Emails to Studio',
      'icon' => '',
      'is_uninstallable' => true,
      'name' => 'Add Emails to Studio',
      'published_date' => '2021-12-16 11:53:12',
      'type' => 'module',
      'version' => 1,
      'remove_tables' => 'prompt',
    );
    
    $installdefs = array (
      'id' => 'Access1004',
      'copy' =>
      array (
        array (
          'from' => '<basepath>/Files/',
          'to' => 'custom/modules/Emails',
        ),
    
      ),
    );
    

    3. Create a folder called 'Files' and inside that create a folder called 'metadata'

        The path would look something like this Emails\Files\metadata

    4. Create a blank studio.php file (code snippet below) with NO contents within the metadata path

    5. Copy manifest.php file and Files directory to create a zip file

    6. Import via modfule loader and then you will see emails as a module in Studio

Reply Children
No Data