Email notifications
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
I have configured few email notifications to trigger after request got fulfilled. This is triggering based upon the variable choices user selects.
Now I want to send emails to few users who are in the list collector variable. So they will receive confirmation emails once the request got fulfilled.
i am
trying to implement using email script but it’s only pulling them in cc but not in To field.
experts please help. Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Hi there @SingL
If you want to send the notification to the users in the list collector, don't rely on the To field UI — list collector values don't automatically populate there. else just select the variable in Recipients fields which holds list collector , in your notification, go to Recipients → Advanced and use
(function() {
var users = [];
var listValues = current.variables.your_list_collector_variable; // sys_ids
if (listValues) {
listValues.split(',').forEach(function(id) {
users.push(id);
});
}
return users;
})();
This will send the email directly to those sys_ids as primary recipients, not CC.
Kind Regards,
Mohamed Azarudeen Z
Developer @ KPMG
