Highlighted
Super Contributor.. Super Contributor..
Super Contributor..
204 views

Getting HTML emails to work for OCMQ/Requests

Jump to solution

Trying to create HTML template for quotes.  However, I cannot get this to work.  Is there a trick to it?  I tried both ways (using a template from IM and changing it to Request Management and created from scratch) but it won't work.  Anyone have a suggestion?

 

Thanks!

0 Likes
1 Solution

Accepted Solutions
Highlighted
Absent Member.
Absent Member.

Hi JTonn,

 

The following steps can be found in the guide "HP Service Manager HTML Email Solution". I am attaching that guide here.

1. Click Tailoring > Notifications > HTML Templates. 
2. Search for and select an existing HTML template as the base of the new template. Example: SM Add 
3. On the General tab, specify a name for the new template in the Name field. 
4. Change the Mail Title field if necessary.
5. In the Language field, select a language for the template. 
6. Describe the template in the Comment text box. 
7. The Module and Test Record fields combined determine which record is passed in for preview. Select a module in the Module field and specify the id of the record in the Test Record field. 
8. In the text box on the Expressions tab, edit the JavaScript code that evaluates the variables that you include in the email message. 

Note: To post certain field values of the record that is passed in, you can add these fields directly in the HTML Source, such as  $RECORD.incident_id. However, if you want to add variables computed based on record fields, you must evaluate these variables using JavaScript code on the Expressions tab and then post the variables in the HTML Source. 

9. The HTML Source tab displays an HTML editor where you can design the message body of your HTML template. You can click Source to toggle between the normal view and the source code view. To reference a variable or expression in the message, enclose your variable or expression in braces, such as{$RECORD.title}. 
10. To generate a preview using the Module and Test Record fields that you specified in step 7, click the Preview tab. 
11. Click Add to create the new template.

 

I hope this helps!

 

Best regards,

Andrés Valverde Jiménez

HP Software Support Engineer

If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
Also, please assign a Kudo to the post if you find it is helpful .

View solution in original post

1 Reply
Highlighted
Absent Member.
Absent Member.

Hi JTonn,

 

The following steps can be found in the guide "HP Service Manager HTML Email Solution". I am attaching that guide here.

1. Click Tailoring > Notifications > HTML Templates. 
2. Search for and select an existing HTML template as the base of the new template. Example: SM Add 
3. On the General tab, specify a name for the new template in the Name field. 
4. Change the Mail Title field if necessary.
5. In the Language field, select a language for the template. 
6. Describe the template in the Comment text box. 
7. The Module and Test Record fields combined determine which record is passed in for preview. Select a module in the Module field and specify the id of the record in the Test Record field. 
8. In the text box on the Expressions tab, edit the JavaScript code that evaluates the variables that you include in the email message. 

Note: To post certain field values of the record that is passed in, you can add these fields directly in the HTML Source, such as  $RECORD.incident_id. However, if you want to add variables computed based on record fields, you must evaluate these variables using JavaScript code on the Expressions tab and then post the variables in the HTML Source. 

9. The HTML Source tab displays an HTML editor where you can design the message body of your HTML template. You can click Source to toggle between the normal view and the source code view. To reference a variable or expression in the message, enclose your variable or expression in braces, such as{$RECORD.title}. 
10. To generate a preview using the Module and Test Record fields that you specified in step 7, click the Preview tab. 
11. Click Add to create the new template.

 

I hope this helps!

 

Best regards,

Andrés Valverde Jiménez

HP Software Support Engineer

If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
Also, please assign a Kudo to the post if you find it is helpful .

View solution in original post

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.