Catalog items - Available For / Not Available For
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-21-2016 09:07 AM
I know this works well as the Service Catalog is hiding some of these.
A section was created a while ago for some HR cases. It will as part of the process show the employee a list of potential Desktop / Laptops from the Service Catalog
All good and well, but it does not respect the Available For / Not Available For tabs so they are seeing kit they cannot have and so on.
What I want to do is to modify the filter that is being used and make it respect the contents under the Available For / Not Available For tabs.
Does anyone know if there is a function or a Script Include I can use and pass something like the current user ID, the Service Catalog and even the Category and it will return me a list of records the passed user ID can see ?
Hope there is before I ponder having to create one.
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-21-2016 09:59 AM
HI Julian,
I guess you are working on Post Eureka release may be Fuji or Geneva since you can see only two related lists "Available For" and "Not Available For" on the catalog item form.
You can populate these sections by creating a "User Criteria" which meets your requirement. You can also script it using script section provided in user criteria.
User Criteria - ServiceNow Wiki
Prior to Fuji, access was controlled via different enitilement fields like "Available for Department", "Not Available for Company" etc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-21-2016 02:43 PM
Hi Deepak, that is not the issue as the client is using that and it works - as I stated
What is the issue is that a previous consultant has written an onboarding section, and part of that is where the new starters hardware can be chosen. However, what happens is the choice list is populated with ALL the catalog Items and not just the ones they are supposed to see based on the Available For / Not Available For tabs.
I can write something that will look at each Catalog Item, dig into the available for and Not Available For and work out which Catalog Items the user can see, I am just hoping that there is an already existing function / Script Include that will do that
bit like the canIWrite()
The way before Eureka was Entitlement Scripts - which do still work and I have a few posts on here about how I used to restrict catalog Items which worked on specific fields on the Catalog Item and a composed Entitlement Script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-21-2016 07:28 PM
Thank you for full explanation
I will also try to check to find if there exists OOB by which you can control the visibility in choice list.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-22-2016 02:11 AM
K
I do get the impression that there is not - or at least not one I can see, but then again, a hidden feature may exist.