Email template for approval/grab variable for email template

kal123
Tera Contributor

Hello,

I am updating the email template for the table - Approval [sysapproval_approver].   I am trying to get the comments field from the catalog item to appear in the email so the approver has context on what the requestor is asking for, using the following:

 

Created by: ${sys_created_by}
Number: ${sysapproval.number}
<div>Short Description: ${sysapproval.short_description}</div>
<div>Comments: ${sysapproval.comments}</div>
<div>Priority: ${sysapproval.priority}</div>
<div>Category: ${sysapproval.category}</div>

 

But it is not appearing in the approval email when being sent to the requestor.

I am sure that I am doing something wrong, can anyone advise?

 

Thank you,

 

1 ACCEPTED SOLUTION

James Chun
Kilo Patron

Hi @kal123,

 

Instead of ${sysapproval.comments}, try ${sysapproval.variables.comments}.

Since the user's input from the catalog item is stored in the variables object, you will have to dot-walk.

 

On a side note, it seems like you are creating a notification for this particular item's approval.

If so, you should rethink about creating a generic notification instead that can be used across all types of approvals.

 

Cheers

View solution in original post

2 REPLIES 2

James Chun
Kilo Patron

Hi @kal123,

 

Instead of ${sysapproval.comments}, try ${sysapproval.variables.comments}.

Since the user's input from the catalog item is stored in the variables object, you will have to dot-walk.

 

On a side note, it seems like you are creating a notification for this particular item's approval.

If so, you should rethink about creating a generic notification instead that can be used across all types of approvals.

 

Cheers

Thank you for the help! This worked and is now pulling the information needed into the approval email. I will also create a generic notification for all approvals going forward!

 

Thanks again!