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

Bhuvan
Kilo Patron

@chaitanya2948 

 

Check this to generate XLSX file,

 

https://www.servicenow.com/community/servicenow-ai-platform-forum/generate-excel-file-xls-or-xlsx-ba...

 

If this helped to answer your query, please mark it helpful & accept the solution.

 

Thanks,

Bhuvan

@chaitanya2948 

 

Did you get a chance to review this ?

 

If my response helped to answer your query, please mark it helpful & accept the solution.

 

Thanks,

Bhuvan

Hi Bhuvan,

 

Yes I tried the given script, not helped the file downloading with XLSX but not opening the file, getting error file corrupted or invalid file.

 

Regards,

Chaitanya Kumar. 

@chaitanya2948 

check the below link I shared.

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