I am stuck in a situation,
When I create a lead I want to create a meeting automatically and also want to sent email invites to lead_email and assigned_user.
I am creating Meeting in Leads module after_save logic hook, meting creating successfully but invites not sent.
require_once('modules/Meetings/Meeting.php');
$Meeting = new Meeting();
$Meeting->name = 'Introduction Call';
$Meeting->status = 'Planned';
$Meeting->parent_type = 'Leads';
$Meeting->parent_id = $bean->id;
$Meeting->date_start = $bean->intro_call_time_c;
$Meeting->duration = 1800;
$Meeting->description = 'test';
$Meeting->lead_invitees = $bean->id.','; //this is the lead id, lead have email
$Meeting->send_invites = true;
$Meeting->save();
when I opened this created meeting and press button on the meeting module “SAVE & SEND INVITES” then Invite email sent, but not through code.