Generate Excel file (xls or xlsx) based on script

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2023 07:58 AM
Hello All,
I am looking for some help to generate an Excel file based on Script. I read a lot of content based on CSV file, but the request is to have a XLS or XLXS file. So, I have the script results working fine for csv, so I just want to "improve" the result.
The request is:
I want an Excel file to show in the header the name of the field (ex: Assignment Group) and the number of records assigned to them (ex: 5). There is more complexity to obtain the result (filtering and using Glideaggregate), but the final output into the file should be like this:
Assignment Group | Quantity |
Group A | 5 |
Group B | 2 |
The current code that I am using you can find below:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2023 07:37 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2023 12:22 AM
Hello Sonu,
Yeah, I saw this reference, but all discussions are evolving sometimes client scripts to load a list or form and others still working with CSV files when the background is requested.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2023 07:15 AM
Hi Sonu,
Did you find a way to produce a .xls file with a script ?
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2024 10:34 AM
Hi , I was able to acheive this by bringing to Excel (.xlsx) instead of csv.
Just below copy paste the code, and u will have excel created in the specified record.
Script: