Quantcast
Channel: GlobalSCAPE Knowledge Base
Viewing all articles
Browse latest Browse all 479

Emailing a report as a PDF attachment in EFT Event Rules

$
0
0

THE INFORMATION IN THIS ARTICLE APPLIES TO:

  • EFT v6 and later

DISCUSSION

When the Auditing and Reporting module is activated, you can configure an Event Rule to generate a report, then email it or save it to a file. If you add the Generate Report Action to a Rule, you must also tell EFT what to do with the report (save it or email it or both). Using the variable %FS.REPORT_CONTENT% in the body of email notifications adds the content of the report inline in the email in HTML format, regardless of the format chosen in the Report Action dialog box. But what if you want to send a PDF of the report to someone? When a report is generated by the Generate Report Action, a temporary, enumerated copy of the report is created and stored locally in the EFT installation folder. The temporary copy is deleted once the Event Rule context is out of scope. Using an AWE workflow and the procedure below, you can generate a report as PDF and then add the PDF as an attachment to an email.

Emailing a report as a PDF attachment

  1. Create a new AWE workflow called EmailReports.
  2. Add a Send Email action to the EmailReports workflow.
  3. In the Attachments area, specify the path to where the report will be saved when it is generated. Be sure to use the %FS.REPORT_FILE% variable. For example:
    C:\ProgramData\Globalscape\EFT Server Enterprise\GeneratedReports\%FS.REPORT_FILE%
  4. Click OK, then Save and Close.
  5. Follow the procedure for creating a Timer Rule with the Generate Report Action.
  6. In the Report Action dialog box, select the report that you want to send, and then, for the Report output format, click PDF.
  7. Specify the date range and Advanced Options as necessary and then click OK. The Report Action is added to the Event Rule.
  8. Add the EmailReports AWE workflow Action to the Event Rule.
  9. Save the Event Rule by clicking OK and Apply.
  10. The Event Rule should look similar to the following:

  11. Click Run Now at the bottom on the Event Rule to verify that the report is generated and the email attachment is sent.

Viewing all articles
Browse latest Browse all 479

Trending Articles