How to add Suspend Reason from Suspend Dialog Box to the work notes?

Brian31
Kilo Contributor

Hello everyone, 

I have a simple request but is proving to be a little more complicated than I anticipated. I'd like to add the On Hold Reason (Other, User, etc) to the work notes but looking into the Suspend Dialog Box client script, I'm not seeing how to get that information added. It looks like the reason is already getting captured somewhere but I can't get that value to populate in the work notes from the attempts I've had so far. Any ideas?

 

//Call the Ajax function that handles adding worknotes and state
var s = new GlideAjax("sn_hr_core.hr_CaseAjax");
s.addParam("sysparm_name", "suspendCaseAction");
s.addParam("sysparm_obj_id", sysId);
s.addParam("sysparm_table_name", tblName);
s.addParam("sysparm_work_note", newWorkNote);
s.addParam("sysparm_suspend_reason", newReason);
s.getXML(addWorkNotes);

function addWorkNotes(response) {
g_form.save();

}

find_real_file.png

find_real_file.png

5 REPLIES 5

is it working?any update on the same