Email script help to open link record

kalava
Giga Contributor

Hello Community,

Can any one help below requirement.

I want to display the number in notification body through email script and if i click that number it should be open form view same record and i dont want to open in service portal.

anyone help me with the script it's highly appreciated.

Thanks,

Ramesh kalava

1 ACCEPTED SOLUTION

asifnoor
Kilo Patron

Hi

In your script you can do simply like this

var attachLink = '<a href="/incident.do?sys_id='+current.sys_id+'">' + current.number + '</a>'; //put your table name

template.print(attachLink);

View solution in original post

26 REPLIES 26

kalava
Giga Contributor

Could you please let us know based on true or false i need to display the some of the fields in body.

But the problem is the notification in approval table and through dot waking i can able to print the those fields in body.

Can you please help me with email script to achive this.

 

Thanks,

Ramesh

Hi

If you are saying notification is on sysapproval table then do a gliderecord to your table liek this

var gr = new GlideRecord("your_table");

if(gr.get(current.sysapproval)) {

if(gr.your_field_name=='your_value')

}