Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

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