Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Termination email body sending incorrectly from update user rule

robert_bowman
New Contributor III
New Contributor III

When user update rule fires off for Terminated users, I have notify as email.  The email is hitting the mailbox, but the only thing in the body is the word true.

1 (5).jpg

Below is the html I am expecting to render.

 

<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
<head>
<img src="https://removed" alt="Header Image">
<div> <br></div>
</head>
<body>
<div>Hello,</div>
<div>See below regarding separation and termination of access. Please take action needed in any applicable systems.</div>
<br>
<p><FONT COLOR="#ff0000"><b>Ensure that any hardware issued to this person that may contain ****** data or information is collected and returned (e.g., laptops; smartphones, tablets).</b></FONT> </p>
<p><FONT COLOR="#ff0000">Other hardware may be returned but is not required. For Employees this task is performed by Human Resources. For Contingent Workers this task is performed by procurement staff and the contract owning manager in conjunction with the vendor/supplier.</FONT></p?
<br>
<p>Usertype: <b><u>${user?.employeetype}</b></u></p>
<p>Full Name: ${user?.displayName}</p>
<p>Account Name: ${user?.systemUserName}</p>
<p>User Principal Name: ${user?.email}</p>
<p>Department: ${user.departmentName}</p>
<p>Title: ${user.title}</p>
<p>Reports to: ${user.manager}</p>
<p> </div>
<p>Regards,<br></p>
<p>******* IGA Team</p>
<p><br><i>Note: This is an auto generated email, do not reply.</i><br></p>
<br>
</body>

 

EDIT: Realized title was misspelled <titel>. Will test to see if anything changed, but I don't think it will.

[This message has been edited by moderator to mask sensitive info]

2 REPLIES 2

rushikeshvartak
All-Star
All-Star

Remove dynamic variables from email template and test. Keep static text

after that check variables exposed

To get what variables are present to use in the email template, check using the below expression. By putting it in the email body, it will print all variable names with values, and then accordingly, you can use it:


${this.binding.variables.each {k,v -> println "$k = $v" + "" + "br" + ">"}}


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

Raghu
Valued Contributor III
Valued Contributor III

Please update below attribute chagne and check it , just removed '?' in binding variable 

<p>Usertype: <b><u>${user.employeetype}</b></u></p>
<p>Full Name: ${user.displayName}</p>
<p>Account Name: ${user.systemUserName}</p>
<p>User Principal Name: ${user.email}</p>
<p>Department: ${user.departmentName}</p>
<p>Title: ${user.title}</p>
<p>Reports to: ${user.manager}</p>


Thanks,
Raghu
If this reply answered your question, Please Accept As Solution and hit Kudos.