Click HERE to see how Saviynt Intelligence is transforming the industry. |
05/05/2022 03:08 AM - last edited on 06/09/2022 10:04 AM by Dave
Hi Team,
This is in the continuation to my previous query - 'How to exclude a user from a dynamic email template', for that I got an response is -
'It is possible through a conditional logic, you can write a conditional logic in the 'TO' field and make it null or blank when a specific manager is matched'.
So someone can please give an example, how can we achieve this.
Thanks
Jaya
Solved! Go to Solution.
05/05/2022 05:13 AM
Hi Jaya,
Here you go..
To:
<% if (task?.tasktype == 3) print "${manager?.email}" else if (task?.tasktype == 1) print "${manager?.email},${requestor?.email},${user.email}" %>
cc:
<% if (task?.tasktype == 3) print "${user.customproperty33},${requestor?.email}" else if (task?.tasktype == 1) print "${requestor?.email}" %>
Thanks
Nikita
05/06/2022 04:29 AM - edited 05/06/2022 04:40 AM
Hi @Nikitaj ,
We are using below query in 'TO' field to achieve this, but unable to trigger email through this -
<% if(users?.email == '123@bank.co.uk') print("abc@bank.co.uk") else { print ("${users?.email}")} %>
Please help me in this.
Thanks
Jaya
05/09/2022 06:50 AM
05/09/2022 06:56 AM
Hi Jaya,
Could you please use 'user' instead of 'users' . Example below :
<% if (task?.source=='REQUEST') print "${requestor.email},${user.email}" else print "" %>
05/11/2022 09:15 PM
You may want to try the following way:
${3 == task?.tasktype ? manager?.email : user?.email}
05/20/2022 12:14 AM
Thanks for the solution sahaj & amit.🙂