- 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
12-13-2023 02:14 AM - edited 12-13-2023 02:29 AM
Thanks @Ankur Bawiskar .
I have added the new question.
https://www.servicenow.com/community/virtual-agent-forum/trying-to-export-data-via-script-but-gettin...
Thanks,
Aprajita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2025 12:25 AM
Hi,
Thanks for this solution. This seems to download an .xls file however, is it possible to modify this to download .xlsx file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2021 11:06 PM
Hi Ankur,
One more suggest on code, need to have a script from which i can filter the data and download the required columns, not directly calling the download URL.
Regards,
Suresh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2021 11:12 PM
You might have to customize that further as per your requirement
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 11:28 PM
Hi Ankur, Customize in script or manual filter.
if need to customize in script, please suggest the script.
Regards,
Suresh.