tomolimo / processmaker

GLPI plugin that provides an interface with ProcessMaker (http://www.processmaker.com/)
30 stars 11 forks source link

Sending notifications from case #102

Closed momohamed770 closed 4 years ago

momohamed770 commented 4 years ago

Hi, I followed the below URL to send email notification but the template didn't translate the variables to its values https://github.com/tomolimo/processmaker/wiki/Task-notifications

example template Hello,

Please find below a Credit Card application to review:

lang.case.title## ##case.title

lang.CR_requester## ##CR_requester

lang.GLPI_ITEM_REQUESTER_PM_ID## ##GLPI_ITEM_REQUESTER_PM_ID

Email output: Hello, Please find below a Credit Card application to review:

Case title ';test10000';

lang.CR_requester## ##CR_requester

lang.GLPI_ITEM_REQUESTER_PM_ID## ##GLPI_ITEM_REQUESTER_PM_ID

Thank you,

tomolimo commented 4 years ago

Hello @momohamed770 Your template is not correct. For case variables, you must use the var prefix like: ##var.CR_requester## or ##label.var.CR_requester## Regards, Tomolimo

momohamed770 commented 4 years ago

I found that this variables i'm using are empty because the notification is fires at start of task so i changed it to send the notification on task update.

But unfortunately the notification didn't fire after submitting the task as expected.

tomolimo commented 4 years ago

Hello @momohamed770

  1. Did you change your template to match the tags?
  2. On which task did you try the update task event?

Thank you to give more details, otherwise, I cannot help you :) Regards, Tomolimo

momohamed770 commented 4 years ago

Hi, I've decided not to use GLPI notifications as it won't provide all my requirements, using PM notifications there are some functions like PMFSendMessage can give you the facility to send emails to specific emails based on your requirement and send each notification based on conditions inside triggers. You can proceed closing this issue, thanks for your valuable support.

tomolimo commented 4 years ago

Did you see this: https://github.com/tomolimo/processmaker/wiki/Notifications#spontaneous-emails?

momohamed770 commented 4 years ago

Yes i already use some of them but in may case the trigger can check after each dynaform on some PM variables and based on them send emails to specific emails that might change based on the variable value.

tomolimo commented 4 years ago

I close then, regards, Tomolimo