.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2024 10:57 PM - edited ‎02-13-2024 03:23 AM
.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2024 11:12 PM
Hi Surya,
You can add reference Qualifier for that field.
Right Click on the Field> Configure Dictionary > Go to Related Tabs > Reference Specification > Choose Advanced.
Write the Calling of script include :-
javascript: new checkHRProfile().checkHRProfile();
Script Include code should be like :-
var gr = new GlideRecord('sn_hr_core_hr_profile');
gr.query();
while(gr.next()){
return gr.sys_id;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2024 11:16 PM
You can put a scripted read ACL on the field:
var profile = new GlideRecord(sn_hr_core_profile);
profile.addQuery('user',gs.getUserID());
profile.query();
if(profile.next()){
return true;
}
return false;
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2024 11:40 PM
Hello @surya9 ,
you Need to Design an Read ACL for this by which they access the Field it will show as "NO RECORDS FOUND"
Read ACL of Field which your trying to Restrict and In advance Include Following Script
answer=false;
var gr= new GlideRecord(sn_hr_core_profile);
gr.addQuery('user',gs.getUserID());
gr.query();
gr(profile.next()){
answer=true;
}
Regards,
Shyamkumar
Regards,
Shyamkumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-09-2024 01:40 AM
Hi @surya9 ,
In which table have you created the dropdown field? In which scope have you created the field?
If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Best regards
Anders
If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.
Best regards
Anders
Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/