copy the interaction short description to new create HR short description
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2023 02:50 AM
HI All,
In The Hr workspace , there is one ui action called CReate HR case : whenever we will click the this ui action
interaction short description should be copy to short description of new HR case .
I am not getting the correct result after modify the Create Hr case UI action
unction onClick() {
if (g_form.getValue('state') != 'closed_complete' && g_form.getValue('state') != 'closed_abandoned')
g_form.addInfoMessage('Please close the interaction before creating HR Case');
return false;
}
var USER = g_form.getValue('opened_for');
var NEW_RECORD = '-1';
var TABLE_HR_CASE = 'sn_hr_core_case';
var PARENT_TABLE = g_form.getTableName();
var PARENT_SYS_ID = g_form.getUniqueValue();
g_aw.openRecord(TABLE_HR_CASE, NEW_RECORD, {
userId: USER,
subjectPersonIdOnCase: USER,
parentTable: PARENT_TABLE,
parentSysId: PARENT_SYS_ID,
});
}
0 REPLIES 0