Trigger notification from workflow

avinashdubey103
Tera Guru

Hi , I am facing an  issue , the requirement is that notification should be triggered to service owner of MIS , IS , BTG, OCIO whose install status is live .
But the notifcation is sending to only MIS serviceowner not all 

notification:

avinashdubey103_0-1701942490458.png


// Set the variable 'answer' to a comma-separated list of user or group sys_ids that you want the email sent to.
answer = [];
var gr = new GlideAggregate("cmdb_ci_service");
gr.addEncodedQuery('u_business_unitINBTG,IS,MIS,OCIO,Support^install_status=300');
//gr.addAggregate("COUNT");
gr.groupBy("owned_by");
gr.query();
while (gr.next()) {
answer.push(gr.owned_by.toString());
gs.log("Ayurveda"+answer);
}

5 REPLIES 5

@Shamma Negi 

The issue is it is not triggering mail to these user