Adding an existing button in SOW .

Shyna1
Tera Contributor

Hello,

I have a button called' Create HR Case' in the Agent workspace with the below code:

function onClick(g_form) {
    var USER = g_form.getValue('opened_for');
    var NEW_RECORD = '-1';
    var TABLE_HR_CASE = 'sn_hr_core_case';
    g_aw.openRecord(TABLE_HR_CASE, NEW_RECORD, {userId: USER, subjectPersonIdOnCase: USER, universalRequestId: g_form.getUniqueValue()});
}
 
And this is written in worskpace client script of the UI action.
If I check the Format in configurable workspace , the button is appearing but it is not working as intended to in SOW . Like it should auto populate some fields like user, subject person etc.
How can I bring the same functionality in SOW , without disturbing the existing functionality in agent workspace.
 
Thanks in advance !!!!
0 REPLIES 0