Adding LotusScript agents to the agent database
A LotusScript agent must be created for each operation that is going to be performed on the target system database. See Creating LotusScript agents for details how to script an agent. Once the agents are scripted they need to be added to the database. The following procedure details how to add a LotusScript agent to the agent database. Perform the procedure for each agent that needs to be added to the database.
Launch Domino Designer.
Open the Shared Code bookmark folder for the agent database and click Agents.
Click New Agent in the workspace to bring up the Agent dialog box.
Name the LotusScript agent. It is recommended that you use the name of the operation that the script will perform; however, this is not mandatory, as the LotusScript agent will be mapped to an actual agent operation in the
agtgdmno
configuration file (see Configuring LotusScript agent operations ).In the Target drop-down menu select "All documents in database". Close the dialog.
Select LotusScript from the second drop-down menu in the <operation name> (Agent): Actions pane.
Select Initialize in the Objects tab.
Enter the script for the operation into the <operation name> (Agent): Actions pane between the "Sub Initialize" and "End Sub" commands.
Sub Initialize <enter script text> End Sub
Select File > Save.