AUTOMATING TASKS USING SIMPLE AGENTS


Sample agent: Changing document status
You, Daniel Peterson, have been working on draft documents in IBM® Lotus® Notes® and you want to keep their status as Unread so that you can track them easily until you have completed them. This agent changes the status of your draft documents to Unread at the end of each day.

First, open your mail application and click Create > Agent. Notes displays the Agent Properties box and opens the Programmer's pane.

In the Agent Properties box:

1. Enter Draft documents - change status in the Name field under the Basics tab.

2. In the Trigger section, select On schedule, then select Daily from the list.

3. Click Schedule.


4. Enter 05:00 PM in the Starting at field, then click OK.
5. For Target, select All new & modified documents.

6. Close the Agent Properties box.

In the Programmer's pane:

1. Click the Objects tab in the Info List section, then select Document Selection from the list of objects.

2. Click Add Condition.


3. Select the condition By Author.

4. Select is any of in the field under Search for documents whose Author...

5. Enter Daniel Peterson in the name field.


6. Click Add.
7. Click the Objects tab in the Info List, then select Action from the list of objects.

8. Click "Add Action."


9. Select "Mark Document Unread" in the Action field.

10. Click Add.


11. Click File > Save to save the agent in the application.

See Also