Click HERE to see how Saviynt Intelligence is transforming the industry. |
04/03/2024 09:18 AM
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
04/03/2024 07:58 PM
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" + ">"}}
04/03/2024 11:11 PM
I did try and used entitlement_values in the email but the job is still failing when the value of this is empty
04/03/2024 11:24 PM
Keep below code in email body and check variables avaiable.
${this.binding.variables.each {k,v -> println "$k = $v" + "" + "br" + ">"}}