HRSD Agent Workspace g_aw.openrecord() question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2023 09:53 AM - edited 03-23-2023 10:08 AM
Hello all,
Is it possible to auto populate a couple of fields on the target record with the aw_openRecord() ?
I've spotted that an OOTB ui action is already doing that (Create HR Case on the Interactions table):
Here's the OOTB Workspace Client Script:
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});
}
But when I try to add more fields it doesn't auto populate like the Opened For and Subject Person.
Anyone had this issue before and found a solution?
Thanks.
- Labels:
-
HR Service Delivery

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2023 11:00 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2023 01:56 PM
No, it would be a replacement of the existing line with a new line formatted as I outlined in my post.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2023 05:47 AM
ok, Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2024 06:50 AM
Hello @Craig Steel - F ,
Can we set the view also ? something like this.
g_aw.openRecord('incident','123456789098765',{view:'incident_manager'})