| | | |
| | How to modify the Notification Mail TemplateKB Number:KB000310Date Published:10/29/2008 12:00:00 AMDate Modified:10/29/2008 12:00:00 AMIntroductionK2 blackpearl can be configured to send notification e-mails to Destination Users within a process. By default, these notification e-mails are built on a notification mail template that has a K2-theme. This template can be modified so that notification e-mails are centric to your organization, etc. You can modify color schemes, fonts, layout, and any other HTML-based, non system element in the template. This article discusses high-level concepts with modifying the Notification Mail Template, including required components, and how to implement the template changes in your processes.  | Note: This document assumes some knowledge and familiarity with HTML. |
The Template FileThe first step required is to back up the files involved. By default, the Notification Template file is located at: <drive>:\Program Files\K2 blackpearl\Host Server\Bin\SourceCode.EventBus.ClientRecorder.DLL.mailTemplate
This default notification mail template can be viewed as an HTML file. An example of the format is displayed below: This default template, if rendered directly in a browser, includes a placeholder for the worklist item URL (“[UrlWithSN]”). This placeholder is the most important element in the template file.  | Important: The SourceCode.EventBus.ClientRecorder.DLL.mailTemplate must include the “[UrlWithSN]” placeholder in the rendered text of the HTML. Failure to do so will result in failed deployment for processes attempting to create Notifications. |
Modifying the Template File- Once you have backed up the file (SourceCode.EventBus.ClientRecorder.DLL.mailTemplate, create a copy of the file, and add the “.html” extension.
- Open the “.html” copy of the file in an HTML editor (Visual Studio was used for all examples in this document).
- Make your desired changes.
 | Important: The SourceCode.EventBus.ClientRecorder.DLL.mailTemplate must include the “[UrlWithSN]” placeholder in the rendered text of the HTML. Failure to do so will result in failed deployment for processes attempting to create Notifications. |
- Save the file SourceCode.EventBus.ClientRecorder.DLL.mailTemplate.html.
- Confirm the changes suit your needs. [optional]
- Copy this file to the folder “C:\Program Files\K2 blackpearl\Host Server\Bin”.
- Rename the existing SourceCode.EventBus.ClientRecorder.DLL.mailTemplate file (or move it out of the directory).
- Remove the “.html” file extension from your modified mail template.
Updating Notifications to Use the New Template | |
| | | |
|
| | | |
| | PRODUCT K2 blackpearl APPLIES TO K2 Designer for Visual Studio K2 Notification Event K2 Server | |
| | | |
|