- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-28-2015 11:00 AM
Hi Friends,
I need to send a mail notification to some mail groups dynamically based on the condition.
I am not ready to create a mail id for my group.
But I need to get the mail ids of the group members.So that I can send them notification.
How to achieve this.Please advice
Thanks
Prici
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-03-2015 03:53 AM
Thanks everyone for your time.
The following snippets did it..
var groupMemberMailIds = '';
var gr = new GlideRecord('sys_user_grmember');
gr.addQuery('group.name','<group-name>');
gr.query();
while(gr.next()){
if(groupMemberMailIds != ''){
groupMemberMailIds += ',' + gr.user.email;
}else{
groupMemberMailIds = gr.user.email;
}
}
gs.log(' groupMemberMailIds are.....'+groupMemberMailIds);
Thanks
Chitra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-03-2015 03:53 AM
Thanks everyone for your time.
The following snippets did it..
var groupMemberMailIds = '';
var gr = new GlideRecord('sys_user_grmember');
gr.addQuery('group.name','<group-name>');
gr.query();
while(gr.next()){
if(groupMemberMailIds != ''){
groupMemberMailIds += ',' + gr.user.email;
}else{
groupMemberMailIds = gr.user.email;
}
}
gs.log(' groupMemberMailIds are.....'+groupMemberMailIds);
Thanks
Chitra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-29-2021 01:13 AM
Hello Tamil,
Can you share the script. Is this a catalog client script or runscript? I have a similar requirement. I need to trigger email to group members when RITM state is changed. Can you help me with providing the script you wrote?