- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2022 11:05 PM
Hi Experts,
I have created a notification on "sc_req_item" table and this notification is triggerd by event and event is present in workflow.
In notification, i have used email script,and in email script i am trying to print RITM details using current.number, current.opened_at in template.print but unable to print because current.sys_id is not pointing to ritm record, what needs to be done, please help me its priority task for me.
Regards,
G
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2022 11:25 PM
Hi,
you should pass the current object as event and notification is on sc_req_item table
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2022 11:08 PM
Hi Gayatri,
You have access to the current object from a mail script, var sid = current.sys_id; or current.getUniqueValue();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2022 11:13 PM
Hi,
Try with
current.getUniqueValue(); or current.sys_id; or event.getUniqueValue();
Thanks!
Sagar Pagar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2022 11:17 PM
i am getting sysid but it is not pointing to ritm record. how should i get sysid of ritm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2022 11:20 PM
share your script here