Catalog UI Policy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2024 12:10 PM
i have a requirement to make "Employee Search " field variable mandatory,
( Note - but for user with job profile is "90000007 -GBS accenture contigent worker" employee search field variable should be optional)
"90000007 -GBS accenture contigent worker" is the string value present in job profile field in user table.
I have tried by using below Catalog UI Policy script in execute if true section
var user = new GlideRecord ('sys_user');
user.addQuery('sys_id' , gs.getUserID());
user.query();
if (user.next()) {
return user.u_job_profile != '90000007 -GBS accenture contigent worker'
}
return false;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2024 09:09 PM
Hello @ash_1998 ,
Can you please elaborate more on this? What is the exact requirement?
Thank you
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2024 11:41 PM
Thank you for your response.
"employee search" variable present on the HR generic form record producer
I have requirement to make "employee search" variable mandatory on form for all users except users who's job profile is "90000007 -GBS accenture contigent worker".
i.e. for user who's job profile is "90000007 -GBS accenture contigent worker" employee search" variable should be optional
Note - "Job profile" is the string field which present on the user table
Thank you