How to make Click here to Reject link in Approval notification to redirect to approval record, do not open an email to send

Preeti4
Giga Guru

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

find_real_file.png

find_real_file.png

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

find_real_file.png

1 ACCEPTED SOLUTION

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>');

View solution in original post

3 REPLIES 3

VigneshMC
Mega Sage

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>');

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>');

I missed adding () after the getDisplay value, that should have been the issue.

Thanks