Generate an excel(.xlsx) using email scripts

SNow35
Giga Guru

Hi All,

 

We have requirement to generate an excel(.xlsx) file using email script, we were able to get the .csv but need it in .xlsx. Please help us on how to achieve this.

@Ankur Bawiskar  Please help here if you can.

Thanks in advance.

8 REPLIES 8

What you can do is create a custom table with a Supplier field and Other fields to store records data, make sure you are avoiding duplicate suppliers while creating the record in a custom table. Now, you can report on a custom table and associate the report with a scheduled email report. I believe you can create a custom table with no cost by extending tables (Such as dl_matcher etc..). In your script include you can work on the logic to populate the supplier data into a custom table.

 

You can refer to this page for more information on custom table - https://www.servicenow.com/content/dam/servicenow-assets/public/en-us/doc-type/legal/custom-table-gu... 

The scheduled email report is getting triggered in global domain instead of required domain.

In which domain you created the scheduled email report?

SNow35
Giga Guru

In the required Domain only