How can i send email to Assignment group with all the ticket detail assigned to them?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2024 03:07 AM
Hi
I have a requirement where i have to send mail to each assignment group with all the incident detail assigned to them.
so my question is:
1. How can i extract the detail like incident number,description etc. of each assignment group?
2. How can i send those extracted data to each assignment group via mail (can i create excel file automatically and send to each assignment group)?
3.Then assignment group have to provide their response to each incident number,How can i capture this responses in incident table (group will provide their response either in shared excel or in mail).
How can i do this via script .please help.
Thanks in advance
Ankit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2024 03:40 AM
Hi @Ankit Kumar6 Follow this thread https://www.servicenow.com/community/itsm-forum/send-notification-to-user-assignment-group-and-assig...
Regards,
Sid
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2024 03:45 AM
Hi @Ankit Kumar6 ,
I tried your problem in my PDI and it works for me please refer below
You can pass data to email notification by 3 ways
1. By passing the events. You have to create before BR and call the event and in that event you have to pass the obj.
(function executeRule(current, previous /*null when async*/) {
// Add your code here
var obj = {};
obj.number = current.number + "";
obj.description = current.description + "";
obj.shortDescription = current.short_description + "";
gs.eventQueue('incident.details', current, JSON.stringify(obj), gs.getUser().getEmail());
})(current, previous);
2. You can create the notification on incident table and access the variables
3. By email script
Please mark my answer correct and helpful if this works for you
Thanks and Regards
Sarthak