short description value from interaction create HR case using Hr workspace

chandan31
Tera Contributor

HI All ,

 

I want to pass interaction short description to New Hr case short description Can you help me :

 

 

Ui action name :Create HR Case

 

written in Workspace Client Script

 

function onClick() {
    if (g_form.getValue('state') != 'closed_complete' && g_form.getValue('state') != 'closed_abandoned') { // HR&O-CR126
        g_form.addInfoMessage('Please close the interaction before creating HR Case');
       
        return false;

       

    }
    var USER = g_form.getValue('opened_for');
    var shortdes=g_form.getValue('short_description');
    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,
       


    });
}
4 REPLIES 4

chandan31
Tera Contributor

@Ankur Bawiskar  : can you help me 

it is not working , can you tell how to customize 

@nowgpt1  and @Ankur Bawiskar  : can you tell me how to configure these two field : subjectPersonIdOnCase and userId .

Can you help me regarding this issue