Trigger notification from workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2023 01:49 AM
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:
// 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);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2023 03:25 AM
@Shamma Negi
The issue is it is not triggering mail to these user