db sh 11.Jun.12 09:14 AM a Web browser Applications Development7.0.3 FP1All Platforms
Dear All,
I need some help or suggestion, there is one task which is new for me. The task is there is one mailbox nsf , i have run one agent the search criteria would be send id. mean if mail sentby="xyz" then i have to pick that document and from subject i have to take some request number and in my db search the document by that request number and stamp some field value.
The main problem is i dont have any idae about the agent, i searched on forum and found that we can set agent property "After new mail has arrived" but my agent is not running, how can i use the search criteria with unprocesseddocument with mail id. i tried this but no luck
Set collection=db.UnprocessedSearch( "@Contains( Principal; ""XYZ"" )", Nothing, 0 )
Set doc = collection.GetFirstDocument()
While Not(doc Is Nothing)
Call doc.PutInFolder( "Done" )
Set doc = collection.GetNextDocument(doc)
Wend
but agent is not running automatic and when i manually run the agent then agent is not going in while loop. Please give some suggestion.