Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

trying to build the query to lookup sysid of user using rest api

chercm
Mega Sage

i found the command but what is to enter into the sysparm_query box on Rest API ?

 

https://[your instance].service-now.com/api/now/table/sys_user?sysparm_query=user_name%3D[your username]&sysparm_fields=sys_id&sysparm_limit=1on R 

 

chercm_0-1701352275558.png

 

1 REPLY 1

Elijah Aromola
Mega Sage

In the box you would just enter the encoded query. An example would be:

 

user_name=admin