Locate Sys ID

paradise623
Giga Expert

How do I find the sys id of a value on a field? 

4 REPLIES 4

Satishkumar B
Giga Sage

Hi @paradise623 
https://docs.servicenow.com/bundle/washingtondc-platform-administration/page/administer/table-admini...

Let's say you are using a business rule on a table that has a 'user' field that points to sys_user.

 

var sys_id = current.getValue('user');

……………………………………………………………………………………………………

Please Mark it helpful 👍and Accept Solution✔️!! If this helps you!!



SN_Learn
Mega Patron

Hi @paradise623 ,

 

Could you please share some screenshot to understand it better? Thanks

Mark Roethof
Tera Patron

Hi there,

 

You could have a look in the XML, when you have the record open > Additional actions > Show XML. Or you could also use the SNUtils trick, double click on the label of the field, and in a popup the value will be shown, in case of reference field it would show you the sys_id.

 

AndersBGS
Tera Patron

Hi @paradise623 ,

 

Please note that you need to go to the specific table and open the record for where the sysid is stored. A field in a table e.g. incident priority doesn't have a sysid within the incident table. 

 

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

 

Best regards

Anders