How to create user criteria in hrsd .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2022 04:29 AM
Hi there,
I want to create user criteria that
The user or employee which are not contingent worker only these user can access hr service on portal
its scoped application need help
var user = new GlideRecord('sn_hr_core_profile');
user.addQuery("user",user_id);
user.addQuery("employment_type","contingent");
user.query();
if (user.next()){
gs.info( user.employment_type);
return "true";
}else{
gs.info("else");
return "false";
}
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2022 07:11 AM
I know that but I can not do scripting in that for more conditions.
I want ,that scripting i provided in the question is correct or does this required any changes whether requires return true or answer=true or just true ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2022 08:56 AM
As