Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to display HR cases of particular Subject person's only on the Reference field ?

Ramu6
Tera Contributor

Hi All,

Basically, we have two fields 'Subject Person', Employee Records, So here 2nd field refers to the Case table, so here(in 2nd field) i want to display the records of other Record producer(HR cases) related this particular subject person ?

 

Please help me to achieve this

Thanks

Ramu

1 ACCEPTED SOLUTION

Well, that seems to be deviation from original ask. You can close this thread and open a new one for further conditional check.

Also, you can try

javascript: 'subject_person='+current.subject_personvariable+'^hr_service=1233';

where hr_service is a field with 1233 as sys_id you can add your condition accordingly

Also, as it seems : is getting replaced with : 

View solution in original post

13 REPLIES 13

Jaspal Singh
Mega Patron
Mega Patron

Hi Ramu,

Try passing below as the reference qualifier in the 2nd field

javascript: 'subject_person='+current.variables.subject_personvariable;

//replace subject_personvariable with the correct variable name for first field

 

If it is a backend field use below

javascript: 'subject_person='+current.subject_personvariable;

//replace subject_personvariable with the correct field name for first field

 

Hi  @Jaspal Singh @Amit Gujarathi 

 

Thanks for the response , i have tried that but it pulls all others records as well

Can you help confirm the dictionary name for the second field.

Also, ensure you use,

JaspalSingh_0-1698770198428.png

 

as it seems : is getting replaced with : 

@Jaspal Singh 

Thanks , its working now, but as i mentioned above, i want one more condition along with that need add other hr service (cases) to this condition