HR Bulk case Creation

sukran
Mega Sage

HI All,

How to configure reference qualifier of Assigned to field in HR Bulk case creation template?

Assigned to field value should show based on "Assignment group" selection

 

find_real_file.png

1 ACCEPTED SOLUTION

Hi,

Unfortunately my instance is not on ROME so I cannot see that page

it shows this to me in Quebec

It's calling internally this UI page -> hr_generate_mass_cases

So you would have to modify and play with that

I would recommend avoiding that as it's OOB UI page

find_real_file.png

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

10 REPLIES 10

Dan H
Tera Guru

Hi,

 

Create script include with name: refqualassignedto

Script:

function refqualassignedto() {
  var group = current.variables.assign_grp; // your assignment group variable name

  var user_array = [];

  if (group != '') {
    var getMembers = new GlideRecord('sys_user_grmember');

    getMembers.addQuery('group', group);

    getMembers.query();

    while (getMembers.next()) {
      user_array.push(getMembers.getValue('user'));
    }

    return 'sys_idIN' + user_array.toString();
  } else {
    return 'active=true';
  }
}

Set type specifications on assigned_to field:

Use Reference qualifier: advanced

Reference qual: javascript: refqualassignedto();

 

Hope this helps.

Please mark my answer as Correct/Helpful based on impact

Regards,

Dan H

 

@Dan H its HR bulk case Template , so not able to view variables setup for fields

Can you guide me HR bulk template cases

Hi sukran,

I've updated the script/post, hope that helps

Hi,

the link which you shared is for form/catalog variable which won't work here

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader