dear all,i have a view perndingwith, in this let say 3 documents.
Suppose first and second documents is pending with Mr.X and third is pending with Mr.Y.
i write a schedule agent for mail send.
Dim session As New NotesSession
Dim currDb As NotesDatabase
Dim currDoc As NotesDocument
Set currDoc=session.DocumentContext
Set currDb=session.CurrentDatabase
Dim view As NotesView
Set view=currDb.GetView(“pendingWithMeMailsend”)
Set currDoc=view.GetFirstDocument
While Not currDoc Is Nothing
'START MAIL SEND CODE
Msgbox currDoc.pendingWith(0)
'END MAIL SEND CODE
Set currDoc=view.GetNextDocument(currDoc)
Wend
This agent send three mails, two to Mr.X and one to Mr.Y.But this is not my requirement, i want to send only one mail to Mr.X and one mail to Mr.Y.
what should i do.
thanx & regard
Rehan