Click HERE to see how Saviynt Intelligence is transforming the industry. |
04/15/2024 12:53 PM - last edited on 04/15/2024 10:31 PM by Sunil
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.
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]
Solved! Go to Solution.
04/15/2024 04:31 PM
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" + ">"}}
04/15/2024 11:53 PM
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>