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 12:34 AM
Can you try inserting below HTML tag and check if it works
<a href="nav_to.do?uri=change_request.do?sys_id=${current.variable_pool.ITCC_no.sys_id}">${current.variable_pool.ITCC_no}</a>
could also verify by gs.log statement what ${current.variable_pool.ITCC_no.sys_id} retruns. I guess it should return the sys_id of the change.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-24-2015 01:05 AM
I tried this by keeping the code in mail script
<mail_script>
gs.log("inside mail script","sana");
<a href="nav_to.do?uri=change_request.do?sys_id=current.variable_pool.ITCC_no.sys_id">current.variable_pool.ITCC_no</a>
gs.log(current.variable_pool.ITCC_no.sys_id,"sana");
</mail_script>
Inside mail script also it is not going. Tried by including $ in front of variable also but no luck...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-24-2015 01:47 AM
Tag wont be available in mail script
Try to put that part after mail script tag and check.
<mail_script>
gs.log("inside mail script sana");
gs.log("Sana: " + ${current.variable_pool.ITCC_no.sys_id});
</mail_script>
<a href="nav_to.do?uri=change_request.do?sys_id=current.variable_pool.ITCC_no.sys_id">current.variable_pool.ITCC_no</a>
Also provide the output of the both log statements.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-24-2015 02:32 AM
Inside mail script it is not going but in notification the value current.variable_pool.ITCC_no is printed with hyperlink but it is not working.
The link coming in hyper link is https://XXXX/nav_to.do?uri=change_request.do?sys_id=current.variable_pool.ITCC_no.sys_id