Add URL link to workflow notification

yandp
Tera Guru

Hello, document owner received this notification when managed document revision approved.

but there is no doc link attach in the email notification, how can include a url link to the email notification?

or can i put this notification to inactive then create a customised notification for the purpose?

Thank you very much.

find_real_file.png

1 ACCEPTED SOLUTION

Hi,

I could see you are triggering the notification from workflow as the event is workflow.notification

So you must be triggering the email via workflow activity

So I am saying to add that in the workflow notification activity

find_real_file.png

Regards
Ankur

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

View solution in original post

12 REPLIES 12

@yandp 

Thank you for marking my response as helpful.

If my response helped you please mark it correct to close the question so that it benefits future readers as well.

Regards
Ankur

 

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

Rajesh Chopade
Kilo Expert

First u create   a Notification Email Scripts     like below

 

 

var temp = event.parm1;


var user = new JSON().decode(temp);


template.print('Click here to approve <a href="https://give urs instance url here/nav_to.do?uri=sysapproval_approver.do?sys_id=' + user.approval_sys_id + '"> Google </a>');

and call above Notification Email Scripts in your notification body like below

 

${mail_script:Notification Email Script Name}

 

 

Regards

Rajesh

Les1
Tera Guru

This worked for me, at least in version San Diego. havent tested in other versions:

add this in the workflow notification activity Message field. (with your actual URL of course after the href= and in quotes like below)

 Click <a href="'www.google.com'">HERE</a> to view the documentation.

find_real_file.png