(Option 2) Create a Program to Schedule a Fixed Link Email Attachment
You will configure a reaction that will execute that report during nighttime hours and send it at a scheduled time to a list of recipients.
- System Manager is in Engineering mode.
- In System Browser, select Application View.
- Select Applications > Logics > Reactions.
- Click the Reaction Editor tab.
- In System Browser, select the Manual navigation check box.
- In the Output expander, open the Action expander, and then select Applications > Links > [fixed link].
- Drag the external web application fixed link into the Scope/Target fields of the Action expander.
- In the Action expander, select the newly-created instruction row and set the following values to send email:
- Property = Application Name [AppName]
- Command = Send Email. (SendEmailExecute)
- FileExtension = PDF[0], Docx [1], XLXS [2]
- FileName = Enter the desired values—for example, Report304
- FilePath = Enter the desired value. The path should generally include \\ to follow scripting standards—for example, [Installation Drive]:\[Installation Folder]\[Project Name]\data\Reporting\Reports\
- Section = Viewer [0], Save Document [1], Caching [2]
- To download the output file, in the Action expander, select the newly-created instruction row and set the following values to send email:
- Property = Application Name [AppName]
- Command = Execute. (WebAppExecute)
- FileExtension = PDF[0], Docx [1], XLXS [2]
- FileName = Enter the desired values—for example, Report304
- FilePath = Enter the desired value. The path should generally include \\ to follow scripting standards—for example, [Installation Drive]:\[Installation Folder]\[Project Name]\data\Reporting\Reports\
- Section = Viewer [0], Save Document [1], Caching [2]
- In the Triggers expander, open the Time and Organization Mode expander, and click the first row.
a. In the Time column, clear the Begin of day and End of day check boxes, and select the Set End Time check box.
b. In the Set Start Time field, enter 12:00:00 AM.
c. In the Set End Time field, enter 07:00:00 AM.
- The Time field is set to From 12:00 to 7:00 AM.
- In the Effective Days field, from the drop-down list, select Recurrence = Occurs all days.
- The Effective Days field, is set to Occurs all days.
- In the General Settings expander, enter text in the Notes field, for example, EmailWebAppReportatNight.
- Click Save As .
- In the Save Object As dialog box, select the main Reactions folder or any subfolder under it as the destination where you want to save this reaction.
a. In the Name field, enter EmailWebAppReportatNight, as you did above.
b. Click OK.