How do I know which field in the table is sys_id?

BoHyun Jung
Mega Sage
 
6 REPLIES 6

Tony Chatfield1
Kilo Patron

Hi, the sys_id field is system generated and always called sys_id.

Unique record identifier (sys_id) (servicenow.com)

I already know the content.

 

ex) Requested item record's sys_id is element_id in sys_journal_field table

When I don't know the above, how can i know that?

This is my question.

Hi, this is a different question; but the requirement is still not clear.
The sys_id of your request item record will appear in the element_id field of the sys_journal_field record. If you don't know the sys_id of your request item record you will need to find it either manually by looking at the request item record - it is visible in the URL from the form view, or via the records xml file.

Or if you are writing a script you can use GlideRecord to query the task records table based on some other unique value like the task number.

 

That's what I know.

 

My question is....

when i know requsted item record's sys_id (ex) a55f2748db68651058f1d19ed39619b6)

I want....

How to find a field connected to sys_id(a55f2748db68651058f1d19ed39619b6)