how to fetch sysid of current record?

shahebaz5
Kilo Contributor

how to fetch sysid of current record?

1 ACCEPTED SOLUTION

AshishKM
Kilo Patron

Hi ,

You can open any record , and get the sys_id from header menu options ( as below )

find_real_file.png

 

If you are trying from some script using GlideRecord , you can get the sys_id of each record from object of GlideRecord ( see the sample code below )

var gr = new GlideRecord('sys_user');
gr.query();
 
while(gr.next()){
// print sys_id
gs.print(gr.sys_id);
 
}
 
Thanks,
Ashish
 
Please hit helpful / or / correct answer , if you find my response worthy based on the impact
 

View solution in original post

7 REPLIES 7

Arun Manoj1
Tera Contributor

To fetch sys_id of the newly created interaction ticket in business rule

 

TEST12311
Mega Expert

Hey, 

 

as below


1. Client: g_form.getUniqueValue();

2. Server: current.sys_id;

                 current.getUniqueValue();

 

 

BR, SoHit

 

Yashraj
Tera Expert

Right-click on the header menu to find an option called 'Copy Sys Id'. Click on it.