Installing the LitCrit Event Service Agent

Before you perform the following steps, locate the file LitCrit_Agent.asp. You can find this file in the folder hierarchy of the CML/LitCrit application, whether you obtained it from a distribution CD or extracted it from an archive file downloaded from the Web. The file is located on the CD in the Samples/LitCrit/Exchange/Agent folder. Open this file with Notepad, and keep it open while performing the steps in this procedure.

You can perform this procedure only after completing the steps in Enabling Event Service Scripting.

Using Microsoft® Outlook®, a folder owner with scripting permissions can create a script and configure the folder to monitor events that will trigger script functions. As mentioned in Granting Permission for Working with Agents, you must also have at least Author permission on the EventConfig_<ServerName> folder. If you are using a special agent scripting account, you should start Microsoft Outlook with the profile created for that account.

To install the LitCrit Event Service agent

  1. Start Microsoft Outlook and locate the LitCrit public folder.
  2. Right-click the folder, and click Properties. This displays the LitCrit Properties dialog box.
  3. Click the Agents tab to display the Agents property page.
  4. Click New. This displays the New Agent dialog box.
  5. Name the new agent "LitCrit".
  6. In the When the following event(s) occur check box, choose one or more events to be monitored. In this case, select all the folder events with the exception of "A scheduled event occurs."
  7. Click Edit Script. This launches Notepad as the script editor. No script exists at this point, so a default script will open that contains stubs for four events. To install the LitCrit sample code, delete the default script code and copy the new code contained in LitCrit_Agent.asp into this window.
  8. When finished, close Notepad, saving changes.
  9. Click OK to close the Agent dialog box.
  10. Click OK to close the LitCrit Properties dialog box.

Note  If you are not installing but rather writing an agent, step 8 is where you can start to write your Event Service script.

After completing these steps, the LitCrit agent code is in place to respond to events on the folder.