When and for What purpose we use "sys_id=-1"?

Shaik Abdul Mu1
Giga Expert

For what purpose we use sys_id=-1 and in which cases we use it. Please explain.....

 

Thanks in Advance.

1 ACCEPTED SOLUTION

Alikutty A
Tera Sage

Hello,

sys_id=-1 is used when you create a new record using the URL arguments. This is way to initialize a record as New one. You can check the OOB Create New module for Incident, It passes sys_id=-1 

find_real_file.png

View solution in original post

4 REPLIES 4

pavan9885
Tera Guru

 Here is the few  purposes of sys ids

 

https://docs.servicenow.com/bundle/london-platform-administration/page/administer/table-administration/concept/c_UniqueRecordIdentifier.html

 

https://developer.servicenow.com/blog.do?p=/post/exporting-data-with-sys-ids/

 

https://www.servicenowelite.com/blog/2014/5/19/finding-the-sysid-of-a-record

 

To find the unique records and to unique assign that group sys ids  we can use for different purpose based on your requirements

Alikutty A
Tera Sage

Hello,

sys_id=-1 is used when you create a new record using the URL arguments. This is way to initialize a record as New one. You can check the OOB Create New module for Incident, It passes sys_id=-1 

find_real_file.png

Ragini Kukade
Kilo Guru

Hi,

A sys_id of -1 is the sys_id of a new record. After the record is inserted, it is given a new sys_id.

for more information,follow the below link:

https://docs.servicenow.com/bundle/london-platform-administration/page/administer/table-administration/concept/c_UniqueRecordIdentifier.html

please mark it as correct/helpful,if you find it helpful.

Regards,

Ragini

pavan9885
Tera Guru

Can you mark answer correct and close the thread so it would not deleted from the unanswered list from the community .