email script not getting triggered
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2024 02:36 AM - edited 10-23-2024 03:01 AM
Hi Guys i am trying to send notification in below format :
here is email script :
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2024 03:05 AM - edited 10-23-2024 03:05 AM
Hi @tghadage124,
you can directly hardcode the other all fields except the quantity table and values can be dynamic from the email template. Only for Quantity table you need a dynamic table which needs to be pulled from Email script. Share the image text here so that i will be able to help you further.
Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2024 04:32 AM
Hi @tghadage124 ,
I have tested your code it is working. Hope you have attached the mail script properly in your notification.
I have triggered it on incident update.
-------------------------------------------------------------------------
If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.
Regards
Runjay Patel - ServiceNow Solution Architect
LinkedIn: https://www.linkedin.com/in/runjay
YouTube: https://www.youtube.com/@RunjayP
-------------------------------------------------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2024 01:39 AM
for some fields like company fields they are not getting populated and for some requisition they are getting populated as sys_id.
please guide.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2024 02:04 AM
do you have company field on the incident table or fetching it from different table?
for the fields which you are getting the sys_id, use the field_name.getDisplayValue();
Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke