Not able to print current.sys_id in email script

Gayathri5
Tera Guru

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

1 ACCEPTED SOLUTION

Hi,

you should pass the current object as event and notification is on sc_req_item table

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

9 REPLIES 9

Chetan Mahajan
Kilo Sage
Kilo Sage

Hi Gayatri,              

You have access to the current object from a mail script,  var sid = current.sys_id; or  current.getUniqueValue();

Sagar Pagar
Tera Patron

Hi,

 

Try with

current.getUniqueValue(); or current.sys_id; or event.getUniqueValue(); 

 

Thanks!

Sagar Pagar

The world works with ServiceNow

i am getting sysid but it is not pointing to ritm record. how should i get sysid of ritm

 

share your script here

The world works with ServiceNow