We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

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