DocumentCollection documents = db.getAllDocuments();
Document doc = collection.getFirstDocument();
Which method used to identify the document Location. Whether it is in Inbox or Sent or Drafts.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The safest way is to get a handle to each folder using db.GetView() and then look to see if the document is within that folder. For that you could use the db.AllEntries() method to get a NotesViewEntryCollection, and then call the GetEntry method to see if the document is within that collection.
If you have folder references enabled for the database, you might be able to use the folderreferences property of the Notes Document to make things easier.