HRSD Agent Workspace g_aw.openrecord() question

DrDinu
Tera Contributor

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.

8 REPLIES 8

Community Alums
Not applicable

Hi @Craig Steel - F ,

 this query code should be used along with the OOTB code present ?

 

Thanks,

Anu

No, it would be a replacement of the existing line with a new line formatted as I outlined in my post.

Community Alums
Not applicable

ok, Thanks!

Abhishek Akkata
Tera Expert

Hello @Craig Steel - F ,

Can we set the view also ? something like this.

g_aw.openRecord('incident','123456789098765',{view:'incident_manager'})