Add RelatedTo variable in meeting reminder notification

Hi Team , @pgr

I am trying to populate to whom the meeting is held for in the email notification sent .

ie the below field

I have made changes as below

modules/Meetings/Meeting.php

in set_notification_body function , added below lines

in custom/include/language/en_us.notify_template.html , added below lines

But in the meeting reminder i got , it doesnt populate … below is the screenshot of the email received

Kindly please guide me , on what i m doing wrong .

Thanks for your time.

If you add a log message next to those new assigns, do you see the values properly printed out in the logs?

This would confirm 2 things

  • that the code execution is passing there
  • that those are correct member names and that they contain data

Hi @pgr,

Thanks for the reply …

I have added below lines to check if the execution is passing there

But i dont see anything in my suitecrm.log file .

  • that those are correct member names and that they contain data

To confirm the above line … yes the data is there

Do I need to change in some other files to achieve this ? Kindly guide.

Thanks for your time.

Regards,
Sravani

Can you try using the same syntax for logging that is used in the rest of the file (I am not sure this makes a difference, though)

LoggerManager::getLogger()->fatal('Message');

Are you using a debugger, can you set a breakpoint there?

Maybe there is more than one place generating meeting notification emails and you are changing the wrong one… if the code execution doesn’t run through your changes, that must be it…

Thanks @pgr

I am able to figure out this …

The initial meeting invite which we get after the meeting is saved with option “Save and send invitees” uses the variables from modules/Meeting.php

But the reminder emails are using the variables from modules/Activities/EmailReminder.php

we need to define the same variables at setReminderBody function something as below.

1 Like