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