Create a 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.

Rushikesh5
Giga Guru

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

1 ACCEPTED SOLUTION

@Rushikesh 

Glad to know that my approach worked.

Please mark my response as correct and helpful to close the thread.

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

18 REPLIES 18

Ankur Bawiskar
Tera Patron
Tera Patron

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

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

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

Hi,

in the BR itself at the end to trigger event so that it sends email

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hi,

I tried this but not working 

Thanks