AnsweredAssumed Answered

How can I Export some custom files like record.js and <file>.php?

Question asked by Deepak Kumar on Sep 19, 2016

Hi Team,

 

I have done some customization which i want to export and import in another system for testing.

Following is the customization which i have done:

 

  1.  I have created one <Custom-Module>.
  2.  In the above custom module i have added custom fields from studio.
  3.  I have exposed one End Point  at location custom/clients/base/api/<file>.php
  4.  I have added record.js which gets triggered from custom button and  call above exposed file. java script file path is custom/modules/<Custom-Module>/clients/base/views/record/record.js

 

All the above code is working fine in dev environment.

 

For testing point of view i have exported above package from studio, All customization which i have done from studio is available like <custom-module>, custom fields etc, but the files which i have mentioned in point 2 and 3 above is not available. how can i add these file in the package.

 

Following is the manifest file:

---------------------------------------

 

$installdefs = array (
'id' => 'PitneBowes',
'relationships' =>
array (
),
'custom_fields' =>
array (
'PB_PBServiceConfigurationaccountid_c' =>
array (
'id' => 'PB_PBServiceConfigurationaccountid_c',
'name' => 'accountid_c',
'label' => 'LBL_ACCOUNTID',
'comments' => '',
'help' => '',
'module' => 'PB_PBServiceConfiguration',
'type' => 'varchar',
'max_size' => '255',
'require_option' => '1',
'default_value' => '',
'date_modified' => '2016-09-07 12:48:10.000',
'deleted' => 0,
'audited' => 0,
'mass_update' => 0,
'duplicate_merge' => '1',
'reportable' => '1',
'importable' => 'true',
'ext1' => '',
'ext2' => '',
'ext3' => '',
'ext4' => '',
),
'PB_PBServiceConfigurationpassword_c' =>
array (
'id' => 'PB_PBServiceConfigurationpassword_c',
'name' => 'password_c',
'label' => 'LBL_PASSWORD',
'comments' => '',
'help' => '',
'module' => 'PB_PBServiceConfiguration',
'type' => 'varchar',
'max_size' => '255',
'require_option' => '1',
'default_value' => '',
'date_modified' => '2016-09-07 12:48:30.000',
'deleted' => 0,
'audited' => 0,
'mass_update' => 0,
'duplicate_merge' => '1',
'reportable' => '1',
'importable' => 'true',
'ext1' => '',
'ext2' => '',
'ext3' => '',
'ext4' => '',
),
'PB_PBServiceConfigurationport_c' =>
array (
'id' => 'PB_PBServiceConfigurationport_c',
'name' => 'port_c',
'label' => 'LBL_PORT',
'comments' => '',
'help' => '',
'module' => 'PB_PBServiceConfiguration',
'type' => 'varchar',
'max_size' => '255',
'require_option' => '1',
'default_value' => '',
'date_modified' => '2016-09-07 12:47:41.000',
'deleted' => 0,
'audited' => 0,
'mass_update' => 0,
'duplicate_merge' => '1',
'reportable' => '1',
'importable' => 'true',
'ext1' => '',
'ext2' => '',
'ext3' => '',
'ext4' => '',
),
'PB_PBServiceConfigurationservername_c' =>
array (
'id' => 'PB_PBServiceConfigurationservername_c',
'name' => 'servername_c',
'label' => 'LBL_SERVERNAME',
'comments' => NULL,
'help' => NULL,
'module' => 'PB_PBServiceConfiguration',
'type' => 'varchar',
'max_size' => '255',
'require_option' => '1',
'default_value' => NULL,
'date_modified' => '2016-09-07 12:47:23.000',
'deleted' => 0,
'audited' => 0,
'mass_update' => 0,
'duplicate_merge' => '1',
'reportable' => '1',
'importable' => 'true',
'ext1' => NULL,
'ext2' => NULL,
'ext3' => NULL,
'ext4' => NULL,
),
),
'copy' =>
array (
0 =>
array (
'from' => '<basepath>/SugarModules/modules/PB_PBServiceConfiguration/clients\\base\\views\\record\\record.php',
'to' => 'custom/modules/PB_PBServiceConfiguration/clients\\base\\views\\record\\record.php',
),
1 =>
array (
'from' => '<basepath>\\Extension\\modules\\PB_PBServiceConfiguration\\Ext\\Language\\en_us.lang.php',
'to' => 'custom\\Extension\\modules\\PB_PBServiceConfiguration\\Ext\\Language\\en_us.lang.php',
),
2 =>
array (
'from' => '<basepath>\\Extension\\modules\\PB_PBServiceConfiguration\\Ext\\Vardefs\\sugarfield_accountid_c.php',
'to' => 'custom\\Extension\\modules\\PB_PBServiceConfiguration\\Ext\\Vardefs\\sugarfield_accountid_c.php',
),
3 =>
array (
'from' => '<basepath>\\Extension\\modules\\PB_PBServiceConfiguration\\Ext\\Vardefs\\sugarfield_password_c.php',
'to' => 'custom\\Extension\\modules\\PB_PBServiceConfiguration\\Ext\\Vardefs\\sugarfield_password_c.php',
),
4 =>
array (
'from' => '<basepath>\\Extension\\modules\\PB_PBServiceConfiguration\\Ext\\Vardefs\\sugarfield_port_c.php',
'to' => 'custom\\Extension\\modules\\PB_PBServiceConfiguration\\Ext\\Vardefs\\sugarfield_port_c.php',
),
5 =>
array (
'from' => '<basepath>\\Extension\\modules\\PB_PBServiceConfiguration\\Ext\\Vardefs\\sugarfield_servername_c.php',
'to' => 'custom\\Extension\\modules\\PB_PBServiceConfiguration\\Ext\\Vardefs\\sugarfield_servername_c.php',
),
),
'roles' =>
array (
),
);

 

 

Regards,

Deepak

Outcomes