User Criteria to EUC device
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2023 06:53 AM
Hi Community,
I've a requirement to make the user criteria for the one of the Quick links. Any suggestions how to create a new user criteria for the below condition? TIA.
Users with EUC device (u_type_of_device=EUC^owned_byISNOTEMPTY^install_statusIN2,6,9,1,3) = /alm_hardware_list.do?sysparm_query=u_type_of_device%3DEUC%5Eowned_byISNOTEMPTY%5Einstall_statusIN2%2C6%2C9%2C1%2C3&sysparm_view=
OR
Users with email addresses (emailISNOTEMPTY)= /sys_user_list.do?sysparm_query=emailISNOTEMPTY&sysparm_view=
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2023 10:37 PM
@Ankur Bawiskar - I've updated the code, but I can see the Quick link still though I don't have the asset
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2023 11:11 PM
Did you debug by adding gs.info() and check in logs?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2023 11:38 PM - edited 10-30-2023 11:45 PM
@Ankur Bawiskar - I've added log to fetch the userId variable but this is not coming in logs.
If I'm giving 'var userId = user_id;' or 'var userId = gs.getUserID();' just to get the logged-in userid without any script. though I'm not able to fetch the loggedin user id
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2023 11:44 PM
can you show how did you attach this user criteria to your record?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2023 11:50 PM