Attach PDF to email notification
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2023 04:55 PM
Hello,
Does anyone know how I would go about creating an email notification so when the record closes, it attaches a PDF of that record in the email?
Thanks in advance!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2023 12:43 AM
Hi @Andrew_TND ,
You can achieve the above requirement by following the below steps:-
My use case is sending the attachment of the incident Record to the caller once the Incident is closed.
Step 1:-
Go to "sys_auth_profile_basic.LIST" and insert one Basic Auth Configuration. Copy the Sysid of this record(We will use this in Step 3).
For more information please find the docs "https://docs.servicenow.com/bundle/utah-api-reference/page/integrate/outbound-rest/task/t_CreateABas..."
Step 2:-
created an event in the event Registry
Step 3:-
Create an update Async or after-business rule and add the below code:-
Code:-
Please mark my answer as helpful and accept it as a solution, if it helps !!
Thanks & Regards,
Suma.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2023 03:30 AM
Hello @Andrew_TND ,
For this, you can simply use this share project, "Export Record - Flow Action".
In flow designer :
- Mention trigger conditions according to your requirements.
- Then use the action "Export a Record".
- Then select the action "Send Email.
@Andrew_TND , Please mark my answer as "Accept as Solution" and "Helpfuls." If it works for you.
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2023 04:36 PM
Hi just tried to do this but I cant find the action is it known by any other name?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2023 12:50 AM
Hello @Andrew_TND ,
First u need to go to this share project "Export Record - Flow Action". (https://developer.servicenow.com/connect.do#!/share/contents/8236087_export_record_flow_action?t=PRO...). SS:
And then click on download button (for to retrieve the update set).
Then commit the update set "Export Record" in your instance.
Then go to flow designer u will find this flow action "Export a Record".
Thanks.