- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2025 08:48 PM
In a table that has a column of type "Document ID"
When I try to export data from this table, the column value contains the label/display value and not its sys_id.
and is in the format of <table_name>: <display value>
How would I go about exporting the sys_id of the referenced table?
PS: This is not about exporting the sys_id of the table on which the export is being attempted. It's about fetching the sys_id of a column that references another table. So while I'm well aware of the
?EXCEL&sysparm_default_export_fields=all
part, it won't work in my use case.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2025 09:21 PM
that's the behavior with document ID field, it contains both the <Table Name>: <Display Value>
I don't think you can get sysId directly of the record being referred by Document ID field
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2025 09:21 PM
that's the behavior with document ID field, it contains both the <Table Name>: <Display Value>
I don't think you can get sysId directly of the record being referred by Document ID field
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2025 09:30 PM
you can try to create database view table and then export and then it might contain sysId
I haven't tried that yet.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2025 01:44 PM
Did you find a solution to this? I too need to extract the sys_id from a document ID
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2025 09:30 PM
I used database view.