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.

Match HR Criteria with Reference Variable

ayushidekate
Tera Contributor

In HRSD Module, I want the Reference Variable with reference to sys_user table populate the list of Users that matches the HR Criteria, so that on the record producer when I see the dropdown of that variable it shows me only the users present in that HR Criteria
Is this possible to filter the list based on the HR Criteria?

1 REPLY 1

Sandeep Rajput
Tera Patron
Tera Patron

@ayushidekate You need a advanced reference qualifier in this case. You can call a script include from your advanced reference qualifier. The script include method will evaluate the HR criteria and will return a comma separated list of sys_ids for whom the HR criteria evaluates to true.

 

Hope this helps.