.

surya9
Tera Contributor

.

4 REPLIES 4

Imam Pasha1
Giga Guru

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 Manders
Mega Patron

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

shyamkumar VK
Kilo Patron

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

 

Please mark this as helpful and accept as a solution if this resolves your Ask.
Regards,

Shyamkumar

AndersBGS
Tera Patron
Tera Patron

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/