Adding an existing button in SOW .
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2023 04:55 AM
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