Locate any record in any table, by number in ServiceNow

SNOW User8
Giga Guru

Hi All,
Is there any way to locate any record in any table by number in Service now? Please help. 
Thanks in advance. 

4 REPLIES 4

Naga Ravindra R
Kilo Sage

Hello @SNOW User8 

Yeah you can use the GlideRecord api.

 

ex:

var gr = new GlideRecord('incident');
gr.addQuery('number', 'INC0010303');
gr.query();
if(gr.next()){
    gs.info("Number= "+ gr.number );
}

 

Can you also share the business use case here?

Please mark as helpful/correct if it helps.

priyasunku
Kilo Sage

Hi @SNOW User8 

 

you can use global search present on navigation homepage . if you search with the number then it shows the particular record with link to it.

 

If my answer solved your issue, please mark my answer as Correct & 👍Helpful

Prince Arora
Tera Sage
Tera Sage

@SNOW User8 

 

You can search in the ServiceNow as mentioned in the below method:

 

PRINCE_ARORA_0-1677490739642.png

 

It will give you all the data related to that string

 

If my answer solved your issue, please mark my answer as Correct & 👍Helpful based on the Impact.

AndersBGS
Tera Patron
Tera Patron

Hi @SNOW User8 ,

 

If you have the SYSID, i would refer you to this Community post: https://www.servicenow.com/community/itsm-forum/how-to-find-record-name-and-table-name-with-sys-id-o...

 

If you have the number, I would refer you to the ServiceNow search option as mentioned by @Prince Arora .

 

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.

 

Best regards

Anders

If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.

Best regards
Anders

Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/