- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-03-2014 05:36 AM
I would like to get sys_id of 100 incident records. Is there a table or any other way to get the list of sys_id for records
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-04-2014 02:38 AM
Just export the records to XML-->open the XML with excel
Let me know if you have any questions.
Thanks
Pradeep Sharma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-03-2014 05:47 AM
You can run a query on specific table and get sys_id of all these records using GlideRecord method.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-03-2014 05:50 AM
Hi Praveen,
You can export all the fields if you are in Dublin release
https://demo002.service-now.com/incident.do?EXCEL&sysparm_default_export_fields=all
Thanks,
Pradeep Sharma

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-03-2014 05:56 AM
Also the sys_id value of a record can be found in a background script.
Script:
findCISysID();
function findCISysID(){
grCI = new GlideRecord('cmdb_ci'); //Replace with the table name you are looking for
grCI.query();
while (grCI.next()){
gs.print('CI Name: '+grCI.name+ ', Sys ID: ' +grCI.sys_id);
}
}
Thanks,
Pradeep Sharma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-03-2014 06:16 AM
Thanks Pradeep for your reponse. When I try to use the same query, report gets generated with the fields available in the current view but not the complete view.
Can you please let me know if any property has to be enabled for the same ?