The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Need help generating XLSX file through script

chaitanya2948
Tera Contributor

Hi Team,

I need your help with generating an XLSX Excel file through a script in ServiceNow.

I tried some scripts, but they only work for .xls format, not for .xlsx.

Do we have any OOB library available (similar to PDF generation) that supports XLSX file creation?

If possible, could you please share an example background script that generates and downloads an XLSX file?

Any guidance will be much appreciated.

Regards,
CK

8 REPLIES 8

Ankur Bawiskar
Tera Patron
Tera Patron

@chaitanya2948 

check this link and please enhance your logic

Exporto MRVS to Excel 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Given Reference is .xls but I need XLSX format file. 

@chaitanya2948 

did you try changing the file type xlsx and also the application type?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@chaitanya2948 

check this

Generate Excel file (xls or xlsx) based on script 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader