and more in a single search tool across platforms. Read the announcement here. |
12/20/2023 07:19 AM
Hello All,
We have a requirement to check if user's title is not in any of below title's then only email needs to be triggered.
Titles
1. Director
2. CEO
3. CIO
4. CTO
5. EVP
6. SVP
7. VP
Please help me with syntax to be configured.
Regards,
Harish
12/20/2023 07:32 AM
Hi @harishyara ,
From where you are triggering this email? Update rule , endpoint, workflow or other?
12/20/2023 07:57 AM
Hi @pmahalle - I am triggering from Campaign Reminder Email Template
12/20/2023 08:12 AM
@pmahalle - In a way I need syntax to check user's title using like operator (user.title like '%Chief%') in To Address. So I need exact syntax of using like operator.
12/20/2023 08:16 AM
Hi Harishyara,
You can add a condition filtering on the "TO" part on your email template.
you can try like this sample :
<% if (null!=user.title && user.title !='Director') print"${user.email}" else print"${}" %>Email
Regards
Harouna SOUMARE
If this reply answered your question, please Accept As Solution to help other who may have a same problem. Give Kudos 😉
12/20/2023 08:59 AM
Hi @Hsoumare As per users data title don't have fixed value
example -
title=Director, IT Dept.
title=President, Finance Department
So is there any way that we can use like operator for title ?
12/20/2023 09:12 AM
Hi harishyara,
the easiest way will by to add some OR condition on the IF like :
<% if (null!=user.title && ((user.title !='Director') ||(user.title !='IT Dept') )print"${user.email}" else print"${}" %>Email
Regards
Harouna SOUMARE
If this reply answered your question, please Accept As Solution to help other who may have a same problem. Give Kudos 😉
12/20/2023 09:41 AM
Below are possible solutions
<% if (user.cusomproperty65.equalsIgnoreCase('DONOTDISTRUB')) print"${user.email}" else print"" %>
12/20/2023 10:01 AM
@rushikeshvartak - Unfortunately we exhausted all the user custom properties.
12/20/2023 10:12 AM
Update mute email flag DONOTDISTURBDELEGATE