Maximo offers the ability to customize communication template message body through below approaches :
- Approach 1 : HTML Tags
- Approach 2 : Automation Scripts
How to customize :
Approach 1 : HTML Tags
Step 1 : Navigate to System Configuration -> Platform Configuration -> Communication Templates -> Select the identified communication template
Step 2 : Scroll down to the Message section
Step 3 : Click on View HTML Source button
Step 4 : Add/Modify HTML Tags to meet the requirement and save the template
Approach 2 : Automation Scripts
Step 1 : Navigate to System Configuration -> Platform Configuration -> Automation Scripts -> Create Automation Script
Step 2 : In the script,
a. Fetch the communication template MboSet/mbo from the identified object mbo
commtempwhereclause = "TEMPLATEID ='<Template>'"
commtempMboSet = mbo.getMboSet("$ComTempMS","COMMTEMPLATE",commtempwhereclause);
commtempMboSet.setQbeExactMatch("true")
commtempMboSet.reset()
commtempMbo = commtempMboSet.getMbo(0)
b. Add/Modify Maximo Communications Template Message Body
message = "<Add/Modify Message Body>"
commtempMbo.setValue("MESSAGE", message)
c. Send the Message from Maximo
if(commtempMbo is not None):
commtempMbo.sendMessage(mbo,mbo);
Expected Result:
Using the above mentioned approaches, Maximo Communication Message Body can be customized for the identified requirements more effectively.
Key Benefit :
1. Customizing Communication Message Body using HTML Tags helps to :
- View Communication Template Message Body in HTML Format
- Add/Modify HTML Capabilities directly in the Maximo Communications Template Message Body
2. Customizing Communication Message Body using HTML Automation Scripts helps to :
- Retrieve Communication Template
- Add/Modify Maximo Communications Template Message Body
- Send the Message from Maximo