If I create a custom module based on account or opportunity type in module builder:
Will this custom module show related contacts email history as do the core Accounts/Opportunity modules?
thanks,
John
If I create a custom module based on account or opportunity type in module builder:
Will this custom module show related contacts email history as do the core Accounts/Opportunity modules?
thanks,
John
do you mean as subpanels or the actual data within them?
I think I mean this:
How can I get my custom module to show up in
Admin>Developer Tools>History Subpanel
So i can select it and have related contacts email histories show up in a “History” subpanel in my custom module (don’t know how to get that subpanel showing yet either)
Hi @John_EZS,
To show the emails of the contacts in the history of your module:
First lookup the link to the contacts by checking for a file that has the word “contact” in the name in the following directory:
custom/Extension/modules/<yourmodule>/Ext/Vardefs
open this file and look for the line that starts with “name”, like:
'name' => 'key_module_contacts',
Take a note of the value, in this example key_module_contacts
Look into the following directory for a file that contains the word “activities” and open it
custom/Extension/modules/<yourmodule>/Ext/Layoutdefs
look for the part:
'emails' =>
array (
'module' => 'Emails',
In this section:
'function_parameters' => array('import_function_file' => 'include/utils.php', 'link' => 'key_module_contacts'),
'generate_select' => true,
You should now have something like this (where key_module_conctacts should be replaced by the link you looked up)
'emails' =>
array (
'module' => 'Emails',
'subpanel_name' => 'ForUnlinkedEmailHistory',
'get_subpanel_data' => 'function:get_emails_by_assign_or_link',
'function_parameters' => array('import_function_file' => 'include/utils.php', 'link' => 'key_module_contacts'),
'generate_select' => true,
),
To make sure your module can be selected as a parent module for the tasks, emails, notes, calls and meetings,
where
custom/Extension/modules