How to add Suspend Reason from Suspend Dialog Box to the work notes?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2022 09:55 AM
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();
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2025 11:05 PM
is it working?any update on the same