sugarCRM : creating relationship using module loader, package not installing

我的梦境 提交于 2019-12-06 16:06:43

I solved it. You can follow following steps to create relationships in SugarCRM through module loader.

Step 1:- Give permission to your sugar directory according to following
For Linux: http://support.sugarcrm.com/Knowledge_Base/Platform_Management/Required_File_System_Permissions_on_Linux/
For Windows:
http://support.sugarcrm.com/Knowledge_Base/Platform_Management/Required_File_System_Permissions_on_Windows_With_IIS/

Step 2:- In manifest.php

<?php
 $manifest = array(
    'acceptable_sugar_flavors' => array('CE','PRO','CORP','ENT','ULT'),
    'acceptable_sugar_versions' => array(
        'exact_matches' => array(),
        'regex_matches' => array('(.*?)\\.(.*?)\\.(.*?)$'),
        ),
    'author' => 'Ravi Ranjan',
    'description' => 'Relationship',
    'icon' => '',
    'is_uninstallable' => true,
    'name' => 'custom relation',
    'published_date' => '2017-08-10 2017 11:45:04',
    'type' => 'module',
    'version' => '20170810',
    );

 $installdefs = array(
    'id' => 'package_20170810',
    'copy' => array(
        0 => array(
            'from' => '<basepath>/accounts_contacts_1MetaData.php',
            'to' => 'custom/metadata/accounts_contacts_1MetaData.php',
            ),

        1 => array(
            'from' => '<basepath>/accounts_contacts_1.php',
            'to' => 'custom/Extension/application/Ext/TableDictionary/accounts_contacts_1.php',
            ),

        ),

    );

 ?>

Step 3:- The contents of both file accounts_contacts_1MetaData.php and accounts_contacts_1.php will be same as you can see in question.

Step 4:- Compress all three files and upload through module loader, after installation quick repair and rebuild.

Go in Studio > Accounts > Relationships You will see a new field there name accounts_contacts_1 That's what I wanted to create.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!