The CreatorCon Call for Content is officially open! Get started here.

Search sys_id in entire Servicenow instance

balu3
Kilo Guru

Hi,

I have a doubt regarding searching records in Servicenow. Given the sys_id and the table, there is a possibility to get the corresponding record. My doubt is given only the sys_id, is it possible to get a record corresponding to the sys_id?

I'm asking this because I read that the sys_id is unique across an instance. So given a sys_id, there must be only one corresponding record in an entire instance.

I'd like to know the possibility using code (Glide API), and searching in UI.

Please assist.

Thanks in advance.

17 REPLIES 17

corina
ServiceNow Employee
ServiceNow Employee

Hello.



Have you seen this?


Search for a specific sys_id


This points to nothing. 

Yes, that will search among a number of the system tables containing code. However, if you have SN Utils and want to search everywhere, simply type slash and then the sys_id, e.g /0956f6390a0a0bc50064623d5d51c556

Thank you for the tip but typing /sys_id will give the first record that is found for that sys_id, not where that sys_id was used within the code.

For example, if you type /<sysid of a group>, it will open in another window the group record that matches that sys_id. BUT if you type /code <sysid of a group>, it will spit out anywhere (tables you configured in reality) where that sys_id was typed within the code.


If I helped you with your case, please click the Thumb Icon and mark as Correct.