Providing link to a variable value in notification

mdsannavulla
Kilo Guru

Hi All,

Is it possible to providing a link to a variable value in notification if the variable is reference to some table

Script I have written in notification ITCC # : ${current.variable_pool.ITCC_no}

Output ITCC # : CHG0004892 -------- here I wants link to that change number


Any help is appreciated ....

13 REPLIES 13

${sysapproval.sys_id} will give request item sys_id because approval is needed for RITM. But I want to show link to change request which is selected in the variable.


sysapproval filed will point to the record for which approval is request. It can be Task, Change, catalog task, REQ, RITM etc.


So if you require approval for RITM, tag should be



<a href="nav_to.do?uri=sc_req_item.do?sys_id=${sysapproval.sys_id}">${sysapproval}</a>



if you require for change, it should be



<a href="nav_to.do?uri=change_request


But how can I get sys_id of the change request which is selcted for the variable in the notification...


I reproduced your requirement in https://demo005.service-now.com/navpage.do



I configured 'Change variable link' notification on 'sc_req_item' table.



I included below link. my Varaible name is ITCCNumber of reference type referencing to change table.


a href="nav_to.do?uri=change_request.do?sys_id=${current.variables.ITCCNumber.sys_id}">${current.variables.ITCCNumber}</a>



This worked perfectly for me.



You can check that before the reset of instance takes place.



You will have to go to 'Maintain Item' , select 'Change Request Varaible Test' catalog item, click on try it and order it.


You can check in sent emails the link pointing to change request number, once you click on it, you will be redirected to that change number