- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2024 04:12 AM
Hello all,
I was working on the notification body and i got one scenario where i need to attach the pdf document in the body of notification, so can i know how to attach the pdf in the email body of the notification through email scripts.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2024 04:51 AM
Hi @Apoorva A H ,
I have come across this on past , In ServiceNow, you cannot directly attach a PDF document to the body of an email notification using email scripts. However, you can achieve a similar effect by embedding a link to the PDF document within the email body.
I KNOW 3 Ways in which you can do it as an alternative...
-
Generate PDF: (least recommedned) First, you need to generate the PDF document that you want to include in the email. You can use various methods such as creating a PDF attachment to a record, generating PDF reports using ServiceNow's reporting capabilities, or using third-party integrations.
-
Get URL to PDF: Once the PDF is generated and stored in ServiceNow (e.g., as an attachment or document), obtain the URL to the PDF document. This URL will be used to link to the PDF in the email body.
-
Compose Email Script: (Recommended as alternative) Write an email script to compose the email notification. In the email body, include the URL to the PDF document using an anchor tag (
<a>
). This will allow recipients to click on the link to open the PDF document.
☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2024 04:51 AM
Hi @Apoorva A H ,
I have come across this on past , In ServiceNow, you cannot directly attach a PDF document to the body of an email notification using email scripts. However, you can achieve a similar effect by embedding a link to the PDF document within the email body.
I KNOW 3 Ways in which you can do it as an alternative...
-
Generate PDF: (least recommedned) First, you need to generate the PDF document that you want to include in the email. You can use various methods such as creating a PDF attachment to a record, generating PDF reports using ServiceNow's reporting capabilities, or using third-party integrations.
-
Get URL to PDF: Once the PDF is generated and stored in ServiceNow (e.g., as an attachment or document), obtain the URL to the PDF document. This URL will be used to link to the PDF in the email body.
-
Compose Email Script: (Recommended as alternative) Write an email script to compose the email notification. In the email body, include the URL to the PDF document using an anchor tag (
<a>
). This will allow recipients to click on the link to open the PDF document.
☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2024 09:47 AM
any other methods can we able to attach the pdf in email?