Custom module's activity doesn't show imported E-mails

Hi all,

Iā€™ve created new modules based on Person and Account.
however when importing new emails they arenā€™t automatically added to the history of said objects ( email addresses are there )

I see them appear in the normal contact module to the correct person.

Anyone an idea how to fix/solve this ?

Iā€™ve found also this posting : http://forums.sugarcrm.com/f6/unable-email-archive-custom-module-41916/
but that didnā€™t help me either.

1 Like

Found this forum post : http://forums.sugarcrm.com/f6/custom-module-email-archiving-88536/?title=custom+module+and+email+archiving#post306099
I modified it slightly so it said :
[hide]


'emails' => 
    array (
      'module' => 'Emails',
		'subpanel_name' => 'ForHistory',
		'get_subpanel_data' => 'function:get_emails_by_assign_or_link',
		'function_parameters' => array('import_function_file' => 'include/utils.php', 'link' => 'fb_persoonrelaties_activities_emails'),//relationship is "emails"
		'generate_select'=>true,
		'get_distinct_data'=> true,
    ),

[/hide]
important is to check the ā€˜linkā€™ part in the relationship table.

Iā€™ve made this changes in :
/custom/Extension/modules/FB_PersoonRelaties/Ext/Layoutdefs/fb_persoonrelaties_activities_calls_FB_PersoonRelaties.php
I donā€™t know if this is the correct place to do this, but itā€™s working now. So if anyone knows the correct place to change/add this, let me know!