...
For example, an article record with the URL as in the example below has a sys_id equal to '158815469913225806'.
https://<instance_url>/record/article/158815469913225806
It can be obtained either from the browser address bar or by copying the URL of the item at the navigation panel or on the list view.
...
Getting the sys_id from the script
...