I would like to create a link to the Approval page of the Request item in the content of the notific

ayano
Giga Guru

I am creating a notification for the Approval table.
I would like to create a link to the Approval page of the Request item in the content of the notification.
How can I create the link?

ayano_0-1688451499771.png

 

4 REPLIES 4

Gurpreet07
Mega Sage

try ${URI}  or  ${URI_REF}

Hi,
Thank you for the comment!

It will have these letters at the end...
What do I do to remove " target="_self">?

ayano_0-1688451868425.png

 

Gurpreet07
Mega Sage

In that case you have to build your own link using email notification scripts. and call that in the email using ${mail_script:script name}

https://docs.servicenow.com/bundle/tokyo-servicenow-platform/page/script/server-scripting/concept/c_...

 

In your case below code in notification script may work. Please check

template.print('<a target="_blank" href="/sysapproval_approver.do?sys_id="'+current.sys_id +'> Click Here </a>');

Hi,
Thank you so much!
I didn't know this function.
Is this okay??

ayano_0-1688453369961.png