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

Deepak Ingale1
Mega Sage

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.


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...


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.


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