Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

How to get the current record's sys_id from a client script

Not applicable

var sid = gel('sys_uniqueValue').value;

1 REPLY 1

amadosierra
Kilo Guru

This is the recommended way:




var sid = g_form.getUniqueValue();



Unique Record Identifier - ServiceNow Wiki