- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2024 11:42 PM
Hi,
I have a business requirement to create some notifications for a custom table we have, and the notification should not send to particular email addresses. I have stored those restricted email addresses under a system property. Now, I need to have the advanced condition to check the list of emails stored in system property and do not send notification to the same, if the email is not listed in the system property, then it should send the notification.
Note: The customer do not want me include those email address in condition as it can be removed mistakenly, so they asked me to have a system property and use an advanced condition.
Can anyone please help with the advanced condition?
Thanks in Advance!!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2024 12:40 AM
Hi @Aruna13 ,
Try this way :
var email= gs.getProperty('ar.donot.send.notification').toString().split(',');
var from = current.email_from.getDisplayValue();
var arrEmail = [];
for(var i=0; i < email.length; i++){
if(from == i ){
add the found email to arrEmail and send email to the array list...
}
}
(do your action...)
☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2024 12:56 AM
share the code ! and screenshots
☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2024 01:07 AM
Hi Sohail,
The code is working fine and i mistakenly given one condition as wrong. When I removed that condition it is now triggering the notifications.
Thank you so much!!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2024 12:22 PM
Hi,
This is still not working, Here is my advanced condition - i8t has to check email addresses in the system property and if it is same, it should not send notification.