HOWTO: Restore automatically inviting the organizer to calls and meetings in Sugar 6.3 and later

sugarcrmdevelopers —  April 12, 2012 — 1 Comment

You might remember a while back we added a blog post to detail how to restore the functionality of having organizers being automatically added to calls and meetings. While the example worked great back in the 6.1 and 6.2 days, it’s not quite as effective with 6.3 and later. Here’s an updated logic hook to do this:

Add the following lines to ‘custom/modules/Users/logic_hooks.php’, create the file if it doesn’t already exist.

$hook_array['after_relationship_add'] = array();
$hook_array['after_relationship_add'][] = Array(1, 'Custom Logic', 'custom/modules/Users/Users_Save.php','Users_Save', 'modify_meeting_invite');

Then create the file ‘custom/modules/Users/Users_Save.php’


if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');

class Users_Save
function modify_meeting_invite(&$bean, $event, $arguments)

if (
&& $arguments['related_module'] == 'Meetings'

&& isset($arguments['related_id'])
&& !empty($arguments['related_id'])
$meetingObj = BeanFactory::getBean($arguments['related_module'], $arguments['related_id']);
global $current_user;

//delcine invite
//$meetingObj->set_accept_status($current_user, 'decline');

//accept invite
$meetingObj->set_accept_status($current_user, 'accept');


Trackbacks and Pingbacks:

  1. format hhmm:ss for datetime field - October 2, 2012

    […] […]

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s