How to generate Excel file(.xlsx) using script without any third party lib.?

ahan
Tera Guru

Hi, I need a way to generate an excel file(not CSV) with certain columns and rows. Values of the cells are not directly from tables.

 

Can anyone help here?

1 ACCEPTED SOLUTION

Isaac Vicentini
Mega Sage
Mega Sage

Hi @ahan!

 

To do this without using a third-party lib, you need to use a Servicenow solution.

See if you have a license and can use the following Spoke:

 

https://docs.servicenow.com/bundle/xanadu-integrate-applications/page/administer/integrationhub-stor...


If my answer helped you in any way, please mark it as Helpful / Accept as Solution 🎯

Regards,

Isaac Vicentini.

 




Best regards,

Isaac Vicentini
MVP 2025


If my answer was helpful, mark it as Helpful or Accept as Solution.

View solution in original post

5 REPLIES 5

Isaac Vicentini
Mega Sage
Mega Sage

Hi @ahan!

 

To do this without using a third-party lib, you need to use a Servicenow solution.

See if you have a license and can use the following Spoke:

 

https://docs.servicenow.com/bundle/xanadu-integrate-applications/page/administer/integrationhub-stor...


If my answer helped you in any way, please mark it as Helpful / Accept as Solution 🎯

Regards,

Isaac Vicentini.

 




Best regards,

Isaac Vicentini
MVP 2025


If my answer was helpful, mark it as Helpful or Accept as Solution.

Thanks for your response.

I am looking for creating the excel sheet and attach it to a record.

Eshwar Reddy
Kilo Sage

Hi @ahan 

I wanted to share this video with you; it really helped me out. You might find it useful too.

Check it out here.

Please mark this response as Correct and Helpful if it helps you can mark more that one reply as accepted solution

 

Thank you,
Esh

Unlock the Power of ServiceNow Scripting: Automatically Generate CSV Files **Hello All,** I hope you are doing great. In today's tutorial, we will be looking into a use case of script to generate CSV based on given query and heaadaers and attach it to a record. Before getting started lets try to ...

Hi @Eswar Reddy , Thank you for sharing the link. However, I am trying to create excel file via script not csv.