We are using 9.41 version of SM, whenever a request is approved or denied, we need to capture this comments and send it in the mail notification to the end user. I'm not sure how to capture the deny comments.
Thanks in adv.
Yes I did that,
var approver= new SCFile("approval",SCFILE_READONLY);
var apprcmt = approver.doSelect("unique.key=\"" $RECORD.incident_id "\"");
var comments=approver.comments; //this stores the updated comments.
& the above "comments" variable was put in the HTML template. When checked in the preview tab I was able to see the latest approver comments.