QUOTE(gman @ Jan 24 2007, 01:45 PM) [snapback]414351[/snapback]
What did you develop?
One let the user made a choice from a database, then looked up fields from a document based on the user selection, then modified a few fields in the documents the agent is running on.
The other is moving certain documents into a folder (easy):
Sub Click(Source As Button)
Dim db As NotesDatabase
Dim sess As New NotesSession
Dim view As NotesView
Dim doc As NotesDocument
Set db = sess.CurrentDatabase
Set view = db.GetView("($VIM23)")
Set doc=view.GetFirstDocument
While Not (doc.HasItem("PostedDate"))
If doc.Form(0)="Mailrule" Then
Call doc.PutInFolder("(Rules)",False)
End If
Set doc =view.GetNextDocument(doc)
Wend
Messagebox "Finished"
End Sub