01/10/2023 04:18 AM
Hi,
For the following workflow, email history job is triggering mails for manager and entitlement owner mails but marked templates are failing to trigger. Please let me know if anyone knows the cause of this.
Tried checking in data analyzer with following query:
select SUBJECTOFEMAIL,TOADDRESS,CCADDRESS,BODYOFEMAIL,PROCESSINSTANCEID from emailhistory where TOADDRESS ='email@email.com' order by emailhistorykey
and
select EMAILFAILURELOGS, OLDEMAILHISTORYKEY from emailhistoryprocess
Showed No data found;
Also did not find any logs that could tell the issue.
01/10/2023 04:38 AM
Share email template content
01/10/2023 04:49 AM
Hello,
Thank you for your quick response below is email template contents:
For Approval:
Hi ${requestor.firstname} ${requestor.lastname},
Your request for ${user?.username} for ${endpoint} with Request ID - ${requestid} has been approved.
Account Name - ${if(accounts?.name!= null){accounts?.name} else{ACCOUNTNAME}}
Request Type - ${requesttype} ( ${request.requesttype} )
Request Submission Date - ${request.requestdate}
Approvers names - ${if(allApprovers.collect{it.username}!= null){allApprovers.collect{it.username}} else{{approvedby.firstname},{approvedby.lastname}}}
For rejection:
Hi ${requestor.firstname} ${requestor.lastname},
Your request for ${user?.username} for ${endpoint} with Request ID - ${requestid} has been rejected.
Account Name - ${if(accounts?.name!= null){accounts?.name} else{ACCOUNTNAME}}
Request Type - ${requesttype}
Request Submission Date - ${request.requestdate}
Rejected By - ${allRejectors.collect{it.username}.join(',')}
Entitlements rejected - ${entitlementshtmltablerows}
01/10/2023 04:52 AM
Request. Variable seems wrong
Create new template and add below content in email body and attach to workflow for grant & reject block to find available variables
${this.binding.variables.each {k,v -> println "$k = $v" + "<" + "br" + ">"}}
01/10/2023 05:30 AM
Hello, I attached it I had a query whether email will trigger after completion of task(grant& reject) because as in below you can see it was approved but did not receive email.
mail did not trigger even though template was attached as shown below:
And also template was attached in workflow:
01/10/2023 05:39 AM
Hardcode to email to your email ?
Did you approved the workflow change s?
any endpoint level template added?
01/10/2023 05:56 AM
Hardcode to email to your email ? yes
Did you approved the workflow change s? yes
any endpoint level template added? no
01/10/2023 08:08 AM
Did you see any error in logs? Also what is the frequency that email history job is scheduled?
01/10/2023 08:46 AM
Enable Advance CSS option
01/10/2023 09:53 PM
01/11/2023 04:45 AM
01/11/2023 05:06 AM
01/11/2023 07:33 AM
Logs are for successful attempt where you received email for variables. We are looking for logs from failure attempt.
Anyway can you try below modifications for approval email and see if that works. I removed approvedby.firstname and approvedby.lastname parameters as they are not supported in approval/reject email.
Also check advanced html css
Hi ${requestor?.firstname} ${requestor?.lastname},
Your request for ${user?.username} for ${endpoint} with Request ID - ${requestid} has been approved.
Account Name - ${ACCOUNTNAME}
Request Type - ${requesttype}
Request Submission Date - ${request.requestdate}
Approvers names - ${allApprovers.collect{it.username}}
01/11/2023 08:11 AM
Try below Email template
task Reject :
Request ID: ${requestid}
Request For: ${ACCOUNTNAME}
Requested By: ${requestor.firstname} ${requestor.lastname}
Requested On: ${request.requestdate.toString().substring(0,10)}
Task Approved
Request ID: ${requestid}
Request For: ${ACCOUNTNAME}
Requested On: ${request.requestdate.toString().substring(0,10)}
01/13/2023 04:11 AM
Hi,
Thank you for template, main concern is during first stage after risk check it is triggering both manager approval mail as well as access granted mail. Can you please help me why this is happening. Sorry new to saviynt.
Thank you
01/13/2023 04:14 AM
You must be having account getting auto approved. Share workflow snippets
01/15/2023 10:06 PM
01/17/2023 06:54 AM
Are you getting both emails at a time same time for low risk entitlements(risk!=4) or high risk entitlements(risk=4)?
01/17/2023 06:59 AM
02/07/2023 10:55 PM
Hello,
Quick update not sure if it was bug, we recently upgraded to 23 version so workflow is sending correct mails. So thank you for your help.