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

so what debugging you did and what setup you did?

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

Hi,

These are the steps that I followed so far

1. Used BR on the incident table which runs when State Changes to Resolved(After insert or update)

2. Used the first script from the link

3. Created event register on the incident table and call that event in the notifications

4. Include attachment checkbox is true

5. Used this at the end of the BR

gs.eventQueue('event_name', current, current.caller_id);

If any changes needed please suggest

 

Regards,

Rushikesh

so what is not working?

file not getting attached?

OR

email is not triggered?

what debugging you performed?

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

Hi,

1. file is not getting attached

2. Also email is not triggered

 

Both are not working 

 

Thanks,

Rushikesh

Hi,

are you using correct steps and credentials in your BR script

it should work fine as per the article shared.

Regards
Ankur

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