i want to populate data without using Reference Qualifier.

Prithvirajk
Tera Contributor

On incident form caller reference field, I want to display only HR department users but without using reference qualifier. Please help me with the what are the ways we can do this requirement ?

7 REPLIES 7

GlideFather
Tera Patron

I am not aware of any other option than that - reference qualifier basically makes "qualification" for the reference, why don't you want to use it, is there any motivation behind it?

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */


Bhimashankar H
Mega Sage

Hey,

 

You can try using matcher setter method, that way you can auto populate data from server side if any condition matches.

 

Thanks,

Bhimashankar

Chaitanya ILCR
Kilo Patron

Hi @Prithvirajk ,

 

you can create a Query BR on sys_user table

ChaitanyaILCR_0-1749793660757.png

with script

in the script replace the sysid with your hr departments sysid

ChaitanyaILCR_1-1749793754693.png

 

(function executeRule(current, previous /*null when async*/ ) {

    if (gs.action.getGlideURI().get('sysparm_target') == 'incident.caller_id')
        current.addQuery('department', '93b25282c0a8000b0b55c8ab34e2f1e6' /*replace this with your HR deparments sysid*/ );
})(current, previous);

 

Ref qual is the way to go but since you wanted a different way here it is

 

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya