can we use java script in notification Message HTML part?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2023 08:14 AM - edited 06-29-2023 11:19 PM
Hi All
can we use java script in the notification Message HTML part?
i need to validate the below script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2023 11:14 PM
Hi Rvai,
Thanks for the response
But I have to send it as an Excel attachment of the sys report so that's why checking in the notification itself so what is the best option now in this case?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2023 11:30 PM
Hi @jobin1
you can follow the thread shared by Omkar.
you can query through attachment table in mail script as shown in the thread.
if it is still not adding attachment, try below steps after adding the mail script:
- Click on "Advance View" in the notification under related link.
- Go to "What it will contain" tab. Enable "Include Attachment" and save.
Regards,
Ravi Chandra.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2023 12:49 AM
Hi Ravi,
I tried the below script in the notification email script but not working

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2023 11:17 PM
Hello,
Maybe this is what you are looking for - https://www.servicenow.com/community/now-platform-forum/help-with-notification/m-p/1088847
Regards,
Omkar