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

Ankur Bawiskar
Tera Patron
Tera Patron

@yandp 

if you are triggering notification on same table via workflow

then include this in the workflow notification message body

<mail_script>

var taskNum = current.number; // field whose value you need to show in the link

var taskID = current.sys_id;

var tableName = 'dms_document_revision'; // table name

var instance_name = gs.getProperty('glide.servlet.uri');
template.print('Click <a href="' + instance_name + tableName  +'.do?sys_id="' + taskID + '">' + taskNum + '</a> to view the Task.');

</mail_script>

Regards
Ankur

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

Hello @Ankur Bawiskar ,

Thank you for, sorry , i am not which is the notification message you mention.

can share some image. Thank you.

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

@yandp 

Hope you are doing good.

Did my reply answer your question?

If so, please mark appropriate response as correct & helpful so that the question will appear as resolved for others who may have a similar question in the future.

If not, please let us know if you need some more assistance.

Thanks!
Ankur

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