Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Email History Job Failing

AK_28
New Contributor
New Contributor

Hi, 

I have created a rejection email. Below is the email

Hi ${requestor.firstname} ${requestor.lastname},
Your request for ${user?.username}  with  Request ID - ${requestid} has been rejected.


User Name - ${user.firstname}${user.lastname}
Account Name -  ${ACCOUNTNAME}
Request Type - ${requesttype}
Request Submission Date - ${request.requestdate}
Rejected By - ${allRejectors.collect{it.username}.join(',')}
Request submission comments - ${request.comments}
Request rejection comments - ${accessItems.collect{it.comments}}
Entitlements rejected - 
${entitlementshtmltablerows}

Thank You

*This is system-generated mail, please do not reply

When the Enitlements rejected returns NULL the Email history JOB is failing and the email is not being sent. How can i resolve this

3 REPLIES 3

rushikeshvartak
All-Star
All-Star

Hi, 

I have created a rejection email. Below is the email

Hi ${requestor.firstname} ${requestor.lastname},
Your request for ${user?.username}  with  Request ID - ${requestid} has been rejected.


User Name - ${user.firstname}${user.lastname}
Account Name -  ${ACCOUNTNAME}
Request Type - ${requesttype}
Request Submission Date - ${request.requestdate}
Rejected By - ${allRejectors.collect{it.username}.join(',')}
Request submission comments - ${request.comments}
Request rejection comments - ${accessItems.collect{it.comments}}
Entitlements rejected - ${entitlementshtmltablerowsv3}

try above

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 this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

AK_28
New Contributor
New Contributor

I did try and used entitlement_values in the email but the job is still failing when the value of this is empty

Keep below code in email body and check variables avaiable.

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


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.