Click HERE to see how Saviynt Intelligence is transforming the industry. |
03/03/2024 10:01 PM
Hello Team,
We are using few binding variables in the email templates like below
Username:${user.username}
Position:${user.positionDesc}
Here i am getting 'null' in the email if position does not contain any value, we are expecting 'NA' instead.
Van you help how to achieve it
Solved! Go to Solution.
03/03/2024 10:34 PM
@Yaswanth Try adding this in your email templates to check the variables exposed :
${this.binding.variables.each {k,v -> println "$k = $v" + "<" + "br" + ">"}}
03/04/2024 02:06 AM
Ca you guide me exactly where i should add the above query?
03/04/2024 04:18 AM
HI @Yaswanth
<% if (user?.positionDesc != null) print "${user.positionDesc}" else print "NA" %>
Thanks,
Amit
If this answers your query, Please ACCEPT SOLUTION and give KUDOS.
03/04/2024 04:42 AM
You can add this in email template to verify the list of attributes used in the WF.
Refer sample example in case you are checking the empty value :
<% if (null!=user.email && user.email!='') print"${user.email}" else print"${user.secondaryEmail}" %>