How to restrict a record producer available for only with the groups with the parent company as ABC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-27-2023 10:26 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-27-2023 11:01 PM - edited ‎03-27-2023 11:01 PM
Hi,
There are user criteria that can be defined to restrict the visibility/ access of a record producer. Please see the below link for details :-
Hope this helps.
Regards,
Dhruv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-27-2023 11:02 PM
Navigate to User Criteria and create a criteria using script with your conditions.
Add the criteria to you record producer in the "Available For" related list.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-28-2023 02:14 AM
checkUsers(gs.getUserID());
function checkUsers(user){
var Agr = new GlideRecord('sys_user_group');
Agr.addEncodedQuery("u_par_company=ABC^active=true");
Agr.query();
if(Agr.next()){
answer = true;
}
else {
answer = false;
}
return answer;
}
pls check above code whats wrong in this its not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-28-2023 03:30 AM
Yes it looks fine.