- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hello team
I'm in the midst of redesigning a catalog item for request to an application that is available to most people within my organisation - (Core Systems). However, there are several access levels within this application that are available and provide access to different areas of the system, however these are specific to a user's role within the company.
Is there a way in which I can restrict which variables appear dependent on the requested_for.department? For example, I don't want our Retail team to be able to ask for access to the Finance side, but they should be able to make requests for roles attributed to the Retail department.
Thank you
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
that's correct.
Store that in a custom table and make this variable point to it.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
yes you can have onChange catalog client script and handle the logic of showing/hiding the variable on your form based on other variable
what did you start with and where are you stuck?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hope you are doing good.
Did my reply answer your question?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago - last edited 2 weeks ago
Evening, Ankur
Thank you for your time taken to respond.
So I have 37 different roles and have made checkboxes for each one. I've made UI policies for each of the roles to make them appear as required when the current.requested_department reference field displayes a value that matches the roles that are available for it. That's all working fine, however I need to then prevent users from selecting more than one of the checkboxes. I initially wanted to do this using a select box, but I didn't know how to stop certain variables from appearing, so I didn't use a lookup with variables, but used checkboxes instead.
Essentially, I have 37 roles to an application.
Let's say that the Finance department should have access to five of them; Retail 12; Operations 8 and so on. There might be some roles that are available for more than one team, too. But the user should only be able to request one role at a time.
I don't know if that's helped at all?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
rather than using checkboxes I will suggest to use this
1) use Lookup Select Box variable type and populate those roles
2) then use advanced ref qualifier to filter it based on requested for -> department
3) select box will allow only 1 selection so you need not worry
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader