How can i send email notification to all the members in a group instead of sending to group email

Anil74
Tera Guru

Hi All,

How can i send email notification to all the members in a group instead of sending to group email?

any suggestions.

Thank you.

8 REPLIES 8

Did you ever find a solution I have the same requirement.

Hi Sarah,

 

There is a check box field called "Include Member" in the group table, If you make the checkbox as true then the notification will go to the group email and members of the group.

 

Thanks,

Jagan

Alp Utku
Mega Sage

Yes there is a way. If you can define conditions on a catalog Item to send customised notification. 

 

  1. Create If Condition on Workflow to determine when a notification must be sent to specific mail boxes.
  2. I am sharing sample code below 

        

answer = ifScript();

function ifScript() {
	var myVar = workflow.variables.<variable name from catalog Item>;
	            workflow.scratchpad.dlname = '';
	
	if ( myVar == 'The condition which you want to trigger emails'){
		
	workflow.scratchpad.dlname = 'myemail@email.com';
		
	}

       

3. Create customised event and notification on ServiceNow  which you want to send to specific mailboxes

4. Create " Create Event" workflow activity and populate Event Name : the customised event you created

5. Parameter 1 : return workflow.scratchpad.dlname ;

6. Parameter 2 : return "" ;