Providing link to a variable value in notification
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-24-2015 12:23 AM
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 ....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-24-2015 11:00 PM
${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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-25-2015 12:09 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-25-2015 02:04 AM
But how can I get sys_id of the change request which is selcted for the variable in the notification...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-24-2015 04:23 AM
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