- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā09-12-2018 02:17 AM
Hi Team,
I have a requirement to make "click here to reject" as URL to approval record, Please suggest how to make this "click here to reject" complete text as link to approval record
A link "click here to reject" - should be a URL to the approval record, because comments are mandatory.
It should look like as below
However when I make "Click here to Reject" link as URL type using below code
Click here to Reject ${sysapproval.number}: ${URI}
it shows me like this (un highlighted). Kindly suggest
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā09-12-2018 03:21 AM
Thank you very much Vignesh for your prompt response. It worked only with below changes to current.sysapproval.number. it was showing some undefined function for getDisplay value
Do template.print('<a href='+gs.getProperty('glide.servlet.uri')+'sysapproval_approver.do?sys_id='
+ current.sys_id + '>' + "Click here to reject "+ current.sysapproval.number + '</a>');

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā09-12-2018 02:41 AM
You have to update your mail script to something like below
template.print('<a href='+gs.getProperty('glide.servlet.uri')+'sysapproval_approver.do?sys_id='
+ current.sys_id + '>' + "Click here to reject "+Current.sysapproval.getDisplayValue + '</a>');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā09-12-2018 03:21 AM
Thank you very much Vignesh for your prompt response. It worked only with below changes to current.sysapproval.number. it was showing some undefined function for getDisplay value
Do template.print('<a href='+gs.getProperty('glide.servlet.uri')+'sysapproval_approver.do?sys_id='
+ current.sys_id + '>' + "Click here to reject "+ current.sysapproval.number + '</a>');

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā09-12-2018 03:24 AM
I missed adding () after the getDisplay value, that should have been the issue.
Thanks