Need help for excel sheet generation from Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2025 05:17 AM
We are unable to process the Excel (.xls) file generated after catalog form submission. Although the file is saved with an “.xls” extension, it is stored in XML format in the backend in ServiceNow where the details of the file is showing as xml format, we need this file to store also as a xls file.
Description:
Upon submission of the catalog form, an Excel file is generated and attached to the corresponding record. However, this file is stored in XML format in the backend, despite appearing as a standard ".xls" file. We have created this excel file though Business Rule.
Please help me to generate the file in proper excel format only.
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2025 05:21 AM
screenshot is missing
are you sure this code attaches the file correctly of type Excel?
check this link and it does something similar and enhance your script
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
05-30-2025 05:29 AM
check this screenshot, it is showing file is storing with.xls extension but stored as xml.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2025 05:53 AM
in sys_attachment what format it shows?
The link I shared should work for you.
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
06-02-2025 02:37 AM
Hope you are doing good.
Did my reply answer your question?
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