Click HERE to see how Saviynt Intelligence is transforming the industry. |
02/17/2023 07:29 AM
Hi,
I am trying to determine the binding variable for the certifier's email address in the Revoke Task email.
Also when the task is created to Remove child entitlement ${users?.email} is a null value so I would like to add a conditional logic check not to send an email if ${users?.email} value is null. Any suggestion on how to do it?
Solved! Go to Solution.
02/17/2023 07:41 AM
Try ${Certification?.certifier?.email} for certifier email.
If didn't work try ${this.binding.variables.each {k,v -> println "$k = $v" + "<" + "br" + ">"}} parameter in body of revoke email template and share the output
Also for if else condition use below
<% if (null==users?.email || users?.email == '') print "<logic here>" else print "logic here" %>
02/17/2023 12:57 PM
Here is the output of all the binding variables. Don't see certification?certifier?.email
task = com.saviynt.ecm.task.ArsTasks :
manager = null
campaign = com.saviynt.ecm.campaign.domain.Campaign :
baseUrlForEmail = https://release-n-plus-one.saviyntcloud.com/ECM
campaignOwnerAndTheirDelegateEmailList =
user = admin
secondarycertifier =
requestor = admin
tasks = com.saviynt.ecm.task.ArsTasks :
users = admin
Certification = com.saviynt.ecm.campaign.domain.Certification :
out = java.io.PrintWriter@3bff52d2
This is Revoke by email address -
[task:com.saviynt.ecm.task.ArsTasks : , manager:null, campaign:com.saviynt.ecm.campaign.domain.Campaign : , baseUrlForEmail:https://release-n-plus-one.saviyntcloud.com/ECM, campaignOwnerAndTheirDelegateEmailList:, user:admin, secondarycertifier:, requestor:admin, tasks:com.saviynt.ecm.task.ArsTasks : , users:admin, Certification:com.saviynt.ecm.campaign.domain.Certification : , out:java.io.PrintWriter@3bff52d2]
02/17/2023 02:59 PM
I don't see parameter exposed related certifier. You need to use certification parameter.
Try the one I suggested ${Certification?.certifier?.email} and see if that works
02/17/2023 03:02 PM
What do you mean to use the certification parameter?
I tried the one you suggested but it does not work
02/17/2023 03:05 PM
Can you put this in body and let me know if it is giving any output
${Certification?.certifier}
02/17/2023 03:06 PM
It gives certifier key which is userkey
02/17/2023 03:14 PM
Okay cool then ${Certification?.certifier?.email} this should work to get certifier email. If you can share the error logs we can see what's going wrong.
otherwise you can try this
${com.saviynt.ecm.identitywarehouse.domain.Users.get(Certification?.certifier)?.email}
02/17/2023 03:38 PM
Could you also suggest what is the issue in the below statement
Hi <%if(null!=task?.accountName || task?.accountName!='') print "${users?.firstname}" else print"XYZ"%>
Even though task?accountName value is null it is not evaluating it correctly
02/17/2023 03:47 PM
What is the behaviour you are seeing with above statement? Are you seeing any error or invalid ouput?
Can you please share the task?.accountName output
02/17/2023 04:06 PM
Thanks again i was able to resolve this issue. Instead of null!= I used null== and it worked