How to create a hyper link in the text message

subbarayudu
Tera Contributor

How to create a hyper link when ever user click on VRA number it should be redirect to that page. How to achieve this requirement.

Thanks in advance. 

subbarayudu_0-1679584492608.png

 

5 REPLIES 5

@subbarayudu To find the answer, you can use the logic which I shared in my reply previously.

 

But if you'd like the direct solution, here you go:

First you will need to find the Table name, on which the Business rule is running, which you will find in the Business rule itself, see image below.

Sal12_0-1679931027609.png

 

Since you have not provided that Table name, I have taken an example Table name as incident.

Based on that

You need to 

Replace:

 

 

 

var str = cdate + ' ' + vdr + ' ' + num + ' Supplier ID: ' + suppid + ' Vendor Submitted Vendor Risk Assessment';

 

 

 

with :

 

 

 

 

    var message = gs.getMessage("[code]<a href='/incident.do?sys_id={0}' target='_blank'> {1}</a>[/code]", [current.getUniqueValue(), num]);
    var str = cdate + " " + vdr + " " + message + " Supplier ID: " + suppid + " Vendor Submitted Vendor Risk Assessment";

 

 

 

 

Make sure, in the just above code, you replace incident with the actual Table name from the Business Rule, as I mentioned above.

 

Sal12_1-1679931744464.png