How to retreive only newly created & modified documents

Hi all,

I have to retreive all newly created and modified documents from my database for running one agent .So, what are steps i have to taken .

in my current situation i keep my agent target to “run on newly modified & created documents” and in my code i had taken collection of unprocessed documents , But whenever i run my agent it always run on all the documents in the database.

So is it necessary that i have to take one status field and always update its value whenever new documents created and modified. and by using this field i process my agent.

But i donot wana do this.

Is there any way to achieve this ,

waiting for ur support.

Rishi

Subject: How to retreive only newly created & modified documents

Rishi,

have a look at those two methods in Designer Help:

notessession.UpdateProcessedDoc

notesdocumentcollection.UpdateAll

They should solve your problem.

Have fun,

Stephan