Display reportees of a Manager in a Catalog item
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2019 03:30 AM
Hi Community,
I need your help to accomplish the below task:
Requirement:
I have to create a Catalog item which is generally used by the managers.
Let's consider a use case: For example, if there are six user records and they have the the manager field updated as "User A".
Now, when the User A tries to access the Catalog item that we build, it should display the list of reportees [the users with manager as User A] should be displayed.
Could you please help me in getting this done!
Regards,
LKongara
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2019 03:39 AM
hello Lkongara,
1. Create new script include and call it from reference qualifier.
2. You can call reference qualifier as below:
javascript:new scriptIncludeName().funtionName();
Please provide a screenshot of catalog item.
Thanks,
Abhishek Gardade
Abhishek Gardade
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2019 03:39 AM
Hi,
So basically you want this functionality:
if user A is logged in and uses the catalog item and there is one reference variable to sys_user table; when clicked on the lookup icon only those users should be shown whose manager is User A i.e. logged in user
if yes then achieve this using simple ref qualifier as below; manager is dynamic me; what it does is it will show only those users where manager is logged in user
Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2019 03:47 AM
Hi Ankur,
Your solution doesn't help my requirement, because the form should display a list of reporters under that logged in user.
Regards,
Lohitha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2019 07:42 AM
Hi,
What does it mean it should display list of users under that logged in user?
Does it not mean show all users whose manager is current logged in user?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader