Questions and discussion about using ProcessMaker: user interface, running cases & functionality
#795702
Hi All
I am trying to figure out how I can include Case Number to show when an email is sent out for Case Notes.

For eg. below information shows up in the Email notification, there's no case number in the email.

[
Subject: A note has been added to the case. Munro Leys : Branch Action Request

Case: Munro Leys : Branch Action Request
Author: Josephine Wilson
]
#795713
The case title is included in the subject line of the email which is sent out by a case note. If you want the case number, you can edit the file workflow/engine/classes/model/AppNotes.php and change lines 169 - 170 from:
Code: Select all
            $configNoteNotification['subject'] = G::LoadTranslation( 'ID_MESSAGE_SUBJECT_NOTE_NOTIFICATION' ) . " @#APP_TITLE ";
            $configNoteNotification['body'] = G::LoadTranslation( 'ID_CASE' ) . ": @#APP_TITLE<br />" . G::LoadTranslation( 'ID_AUTHOR' ) . ": $authorName<br /><br />$noteContent";
 
To:
Code: Select all
            $configNoteNotification['subject'] = G::LoadTranslation( 'ID_MESSAGE_SUBJECT_NOTE_NOTIFICATION' ) . " @#APP_NUMBER ";
            $configNoteNotification['body'] = G::LoadTranslation( 'ID_CASE' ) . ": @#APP_NUMBER<br />" . G::LoadTranslation( 'ID_AUTHOR' ) . ": $authorName<br /><br />$noteContent";
 
Another option is to create a DynaForm with a textarea where the user enters the text to send as a case note and then use a trigger after that DynaForm which calls the PMFAddCaseNote() function. In your trigger code you can use the @@APP_NUMBER system variable. For example:
Code: Select all
if (!empty(@@noteText)) {
   $text = "Note for case: #".@@APP_NUMBER."\n".@@noteText;
   PMFAddCaseNote(@@APPLICATION, @@PROCESS, @@TASK, @@USER_LOGGED, $text, 1);
}  
By the way, if you include @#APP_NUMBER in the body of the case note, the case number will automatically be inserted when emailed. However, this won't happen inside the PM interface, so you will see "@#APP_NUMBER" in the case note.

DO we have to pay tax for trade https://www.getfir[…]

Mosquito Zapper Reviews

https://www.facebook.com/sammosquitozapper https:[…]

https://www.facebook.com/sammosquitozapper https:[…]

Are you looking for a simple method to import EML […]