Configuring Events and Actions

Using Microsoft® Outlook, a folder owner can create a script and configure the folder to monitor events that will trigger script functions. As mentioned previously, you must also have Author permission on the EventConfig_<ServerName> folder to bind agents on the server on which they will be run.

    To create a script in a folder
  1. Start Microsoft Outlook and locate the folder whose events you want a script to respond to.
  2. Right-click this folder, or select Folder from the File menu.
  3. Select Properties for that folder. This displays the Expense Report Properties dialog box.
  4. Choose the Agents tab to display the Agents property page.
  5. Select New. This displays the New Agent dialog box.
  6. Give the agent a name, such as Process New Expense Report. This also renames the dialog box.
  7. Choose an event to be monitored. In the When the following event(s) occur check box, select, for example, A new item is posted in this folder. This is illustrated in Process New Expense Report Dialog Box. For more information about the other choices in this dialog box, see Scheduled Event Dialog Box, and About Event Logs.
  8. Choose an agent for the event. To use the default script agent, choose the Script option button and go to Step 8. If you intend to use a non-script agent, skip to Step 9.
  9. Choose Edit Script. This launches Notepad by default, or Microsoft Visual InterDev if it is installed. If the script does not exist, a default script will open that contains stubs for four events; see Procedure for Editing Scripts. If a script exists, with the script editor open, choose Open on the File menu, and then open the existing script.
  10. If non-script agents are available, they are listed in the drop-down list box below Edit Script, the Other option button is available, and you can choose it to select one of these agents. This list box shows all the COM objects that support the IExchangeEventHandler interface and are bound to the specified server. If, for an agent, you choose a COM object that is also an ActiveX control that requires properties to be set, you can choose the Properties button to set them in the Properties dialog box.