How to copy short description using create hr case ui action.

chandan86patra
Tera Contributor

Hi all, 

 

How to copy the short description from intersection to hr new case in the hr agent workspace using create hr case ui action.

I am not able to modify the g_aw script.

 

Can you guide me how to modify the script 

 

 

 

2 REPLIES 2

chandan86patra
Tera Contributor
Script :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_CASENEW_RECORD, {
        userId: USER,
        subjectPersonIdOnCase: USER,
        parentTable: PARENT_TABLE,
        parentSysId: PARENT_SYS_ID,
       
    

qamrain
Tera Contributor

I have a same question, how did you achieve this?