After new mail has arrived - need to locate triggering document

When a mail arrives in a mail database, i have an agent that runs. This agent is set to run for ‘After new mail has arrived’.

How can i find the document that triggers this agent. i.e. how can i find the mail that has just arrived and that has triggered this agent.

Subject: After new mail has arrived - need to locate triggering document

1.You can use “UnprocessedDocuments” property to get new documnets in mail database.2. Also “GetModifiedDocuments” for getting modified documents in a specific time.

May this help you