Updating activity template to display activity note type in the Activity tab
The following graphic shows a high-level overview of the steps you need to perform in this procedure.
The following video (2:01) shows how to display the activity note type to the activity note message in BMC Helix ITSM: Smart IT.
To update activity template to display activity note type in the Activity tab
- Search and download the SHR_SV_Activity_Template_Generic.html template file.
- Open the AR System object list page and AR System Resource Definitions form.
http://<MidtierHostName>:PortNumber>/arsys/forms/<AR_Server_Name>/AR+System+Mid+Tier+Object+List - In the Name field, enter AR System Resource Definitions form.
- Click Open Search to open the form in search mode.
The AR System Resource Definitions form opens. - In the AR System Resource Definitions form, in the Name field, enter SHR_SV_Activity_Template_Generic.html.
- Click Search.
The search result shows SHR_SV_Activity_Template_Generic.html - In the Resource section, select SHR_SV_Activity_Template_Generic.html.
- Click Save to Disk.
- Open the AR System object list page and AR System Resource Definitions form.
- Open the SHR_SV_Activity_Template_Generic.html template file in a source code editor such as Notepad++.
- Add the following variable in the template file:
var workLogType = $<field ID>$ - Replace the field ID with the field ID of the incident, which is 304427491.
The field ID is 304422931 for work orders. After this change, you have the following line of code:
var workLogType = `$304427491$`; - In the template file, search for the following line of code:
messageText = peopleText + valField_0 + ' ' + addedNoteStr + '</br>' + generateLinkForURL(valField_1) - Replace it with the following line of code to add the note type variable to the activity notes message:
messageText = peopleText + valField_0 + ' ' + addedNoteStr + ' ( ' + notetype + ' )' + '</br>' + generateLinkForURL(valField_1); - Save the changes to the template file.
- In the AR System Resource Definitions form, delete the existing template file (SHR_SV_Activity_Template_Generic.html) and add the file you just updated.
- Open the Mid Tier configuration tool and flush the cache to update the changes.
- Open BMC Helix ITSM: Smart IT and create a new note in the incident page.
You can see that the note type information is displayed in the activity note message.
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*