Export data to multiple spreadsheets of same excel file using background scripts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2022 02:28 AM
Hi All,
I need some help on this. I was trying to import data to multiple sheets of same excel using background scripts. But I'm not able to do it. The requirement is that I want list view of multiple tables in single excel sheet. The code which I wrote generates separate excel file for each table list view. Can someone help me here?
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2022 03:49 AM
I doubt this can be achieved.
Can you share your current scripts
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2022 01:15 AM
Hi Ankur,
Below is the code that I used to export the list view of the table. But my requirement is that I want all in one excel file
var rm =new sn_ws.RESTMessageV2();
rm.setHttpMethod('GET');
//list view url
var url='';
rm.setEndpoint(url);
rm.setBasicAuth('admin','June@2022');
rm.saveResponseBodyAsAttachment('incident','760b75e92fa15110f6a79dacf699b68e','INC0023243.xls');
var response = rm.execute();