User Criteria to EUC device

Janu sree
Tera Guru

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=

11 REPLIES 11

@Ankur Bawiskar  - I've updated the code, but I can see the Quick link still though I don't have the asset

@Janu sree 

Did you debug by adding gs.info() and check in logs?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@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

@Janu sree 

can you show how did you attach this user criteria to your record?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar - I've written new user criteria in the Quick links 

Janusree_0-1698734920804.pngJanusree_1-1698734990402.png