I am using JasperServer 5.0 for report scheduling and wanted to know if anyone knew of a way to get the resource ID for the output file that was generated and insert that into the body of the email. For example, if I have a report scheduled to run every night and deliver a PDF file as an attachment, I would also like to create a link to an external system in the email body referencing the attached PDF in the repository.
The exact requirement is:
- An initial report email is sent to a report approver as an attached PDF
- After review of this report file, the approver clicks a link in the same email pointed to http://www.externalsystem.com/approveReport?outputFile=/path/to/file
- The external system will then fetch the approved output file from the repo and forward it on to the correct recipients