- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2021 02:42 AM
Hi All,
Please guide on, how i can export data into excel [.xlsx] via script.
Regards,
Suresh.
Solved! Go to Solution.
- Labels:
-
Incident Management
-
Multiple Versions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2021 08:06 AM
we forgot adding the underscore
now it should work fine
g_navigation.open('/' + tableName + '_list.do?EXCEL&sysparm_view=ess', '_blank');
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2021 06:51 AM
Hi,
you are giving type as CSV
for excel use this
g_navigation.open('/' + tableName + 'list.do?EXCEL&sysparm_view=ess', '_blank');
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2021 07:52 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2021 08:06 AM
we forgot adding the underscore
now it should work fine
g_navigation.open('/' + tableName + '_list.do?EXCEL&sysparm_view=ess', '_blank');
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2023 11:18 PM
Hello @Ankur Bawiskar ,
I have used this same logic to export almost 1lakh data from computer table as well as some details from sys_audit table via fix script.
But the script is not running after 5k data and the transaction is getting canceled with message "Available memory is almost depleted".
Can you please help me on this, how to fix this error.
Thanks,
Aprajita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2023 11:41 PM
can you post this as new question as this is an old thread?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader