Attaching an Excel file of a report to an email notification
Reporting in ServiceNow allows you to measure the success of your efforts across the different functions. You can report on the state of your incidents, views on your knowledge base articles, status on your projects and more. Once you have your reports finalized, there's a good chance you will need to send them to other teams, higher-ups and organization leads. Where one option would be to just give them access to the report, that is not always ideal as some level of employees strictly use email or don't have the training or experience to navigate their way into the reports. This is where being able to share reports via an email notifications would be handy.
By default, email notifications will attach a report result as a .PDF. PDFs are great if the recipient of the report is a manager, or a higher-up in that they will not be using the data for anything besides review. For others, there's a need to be able to use the data represented in the email notification for means to a great cause for the business. For example, let's say you are managing the incident creation metrics and the Knowledge Management team, wants to see the data to compare to their own article view metrics. You send them your report results as a PDF and they immediately reply asking for it in an Excel form so that they can copy and paste the values into their own sheets.
You can change the default attachment form from PDF to an Excel to make sharing reports through email easier.
| For example: ${report:reportID:430363d7db4caa00939f3c8caf961900};You attach a report to the notification by adding the following text in the Message HTML section:${report:reportID:sys_id_of_report} |
|---|
Changing the default format from PDF to Excel is pretty easy. All you have to do is ":xls" to the report attachment in the Message HTML section. For example: ${report:reportID:sys_id_of_report*:xls*}
Now you can change your report PDF to an Excel and share it with your coworkers to make reports more accessible and easier to work with across the organization.
Thank you ayca
https://www.servicenow.com/community/developer-blog/attaching-an-excel-file-of-a-report-to-an-email-notification/ba-p/2265842