How to rename Zip file in Scheduled report
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2018 10:05 PM
Hello Team,
is there any option available to rename Zip output like ABC.CSV etc format. if yes please let me know how to make use of this functionality.
Labels:
- Labels:
-
Reporting
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2018 01:06 PM
The file gets created in the sys_attachment table before being emailed. Thus, you can create a Business Rule on that table to rename it to whatever you want.
(function executeRule(current, previous /*null when async*/) {
// Add your code here
current.file_name = "My New Filename.pdf";
})(current, previous);
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2025 04:43 AM
Use before insert business rule:
lets suppose default filename is abc.csv, then:
Before Insert BR on "sys_attachment" table:
condition filter: filename is abc.csv.
Script:
current.file_name="ABC.CSV";