I would like to have approver name in the SD tickets so the same could be populated to the email notification , tried the below script given in html template.
//Approver name in email//
var ofile = new SCFile("operator");
var query ="name=\""+ $RECORD.approver_name\"";
var rc = ofile.doSelect(query);
if ( rc = RC_SUCCESS)
vars.$appname= ofile. full_name
Also in html source gave $appname for the email , but email doesnt trigger , jkindly suggest