Exporting incident history, including outbound emails
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-12-2025 04:05 PM
I have a request from a department at my company to export the entire incident history for a handful of incidents. They want to see the usual incident information along with notes, customer communication, or outbound/inbound email done within that incident, ideally in an Excel spreadsheet. When I attempt to create a database view joining incident (where inc.number > 'INC0000000''), sys_journal_field (where inc.sys_id = jour.element_id), and sys_email (where em.instance = inc.number), I get no results. When I leave out the sys_email table, I get information, but it seems that there are duplicate entries and I'm only seeing the customer communication, not the response form one of our employees. I know it is not recommended (maybe not even possible?) to run database views on sys_email, or I could have my where clauses set up incorrectly. Is there any way to pull this information?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-12-2025 07:26 PM
don't join all 3 tables together incident, sys_journal_field and sys_email
The sys_email table is system table and having database view on it might lead to performance
Try to join incident and sys_journal_field and then incident with sys_email and take export
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-13-2025 06:37 AM
Thank you, but joining sys_email and incident does not result in the header information or body of the email being visible.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-13-2025 06:52 AM
which other fields are visible?
Might be platform issue
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-14-2025 06:46 AM
I'm working with SN support now to try to find a resolution. Thanks for your help.