- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-06-2022 10:38 PM
Hi, I have this requirement can anyone help me with this i.e. how to do it
- Create an incident record, when incident state changes to "Resolved." ,
- Export a PDF of resolved incident automatically & attach a attachment in Email notification.
- Send Notification to the caller with attached attachment of incident record.
Thanks
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-08-2022 03:36 AM
Glad to know that my approach worked.
Please mark my response as correct and helpful to close the thread.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-06-2022 11:11 PM
Hi,
Points below
1) Use BR on incident table which runs when State Changes to Resolved
2) Use this script from link and enhance to add pdf of record
Generate PDF and attach to the record
3) Create event on incident table
4) I assume you have knowledge on how to create notification and send to caller from notifications module and link with Event created in above step
5) In the notification you can use Include attachment checkbox to include file in email
BR:
1) will have code to generate and attach pdf
2) it would trigger event
gs.eventQueue('event_name', current, current.caller_id);
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-07-2022 02:23 AM
Thanks for the reply
I tried as you said but not working
can you tell me where should I use this
gs.eventQueue('event_name', current, current.caller_id);
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-07-2022 02:29 AM
Hi,
in the BR itself at the end to trigger event so that it sends email
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-07-2022 05:08 AM
Hi,
I tried this but not working
Thanks