(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.
  1. In System Browser, select Application View.
  1. Select Applications > Logics > Reactions.
  1. Click the Reaction Editor tab.
  1. In System Browser, select the Manual navigation check box.
  1. In the Output expander, open the Action expander, and then select Applications > Links > [fixed link].
  1. Drag the external web application fixed link into the Scope/Target fields of the Action expander.
  1. 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]
  1. 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]
  1. 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.
  1. 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.
  1. In the General Settings expander, enter text in the Notes field, for example, EmailWebAppReportatNight.
  1. Click Save As .
  1. 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.