Click HERE to see how Saviynt Intelligence is transforming the industry. |
12/27/2023 09:07 AM
if we are sending emails using dynamic TO section. can we prevent email going to certain users(ex: cp1=yes) and redirect it to someone else like admin . and remaining case it should as per configuration.
12/27/2023 09:19 AM
<%if(user.customproperty1=='YES'){print "Rushi@saviynt.com"} else {print ""}%> |
02/06/2024 11:06 PM
<%if(user.customproperty1=='YES'){print "Rushi@saviynt.com"} else {print ""}%>
Here its checking CP of which user. I couldn't understand the logic.
for example in usermanager campaign i need to send email notification to managers. for few managers it should be redirected to Rushi@saviynt.com (xyz). How we can do it.
02/06/2024 11:13 PM
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" + ">"}}
12/27/2023 08:18 PM
Yes, below is the syntax of if-else condition in TO section
<% if (null!=user.email && user.email!='') print"${user.email}" else print"${user.secondaryEmail}" %>Email
Thanks,
Devang Gandhi
If this reply answered your question, please Accept As Solution and give Kudos to help others who may have a similar problem.
02/06/2024 11:27 PM
Try below:
<% if (null!=user.customproperty1 && user.customproperty1=='YES') print"Rushi@saviynt.com" else print"${manager.email}" %>
Thanks,
Raghu
If this reply answered your question, please Accept As Solution and give Kudos to help others who may have a similar problem.
02/07/2024 05:58 AM - edited 02/07/2024 05:58 AM
can we check for the user's manager's customproperty here?: user.customproperty1=='YES'
02/07/2024 06:23 AM
user.manager.customproperty1=='YES'
02/08/2024 01:40 AM
try :
manager.customproperty1=='YES' or user.manager.customproperty1=='YES'
02/07/2024 09:14 PM
@Saviynt_learner you need to have a mapping of user with CP values to be used as part of email template.
<%if(user.customproperty1=='YES'){print "Manu@test.com"} else {print ""}%> |
02/13/2024 04:03 AM
This doesn't seem to be working. Is there any other way to achieve it besides using an email template
02/13/2024 04:38 AM
It should work share all steps you have tried