How to create a hyper link in the text message
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2023 08:15 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2023 08:35 AM - edited 03-27-2023 08:42 AM
@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.
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.