Question

Locked

What is the folder my lotus notes email resides in?

By adb11a ·
Hi,

Can someone please assist with me returning the folder my email resides in. Using
If doc.GetItemValue("Subject")(0) = "TEST" Then

I can trap if the subject matches my requirement. I want to return the folder the email resides in. My tree structure of my $INBOX is:

FOLDER
FOLDER\Type A
FOLDER\Type B
FOLDER\TYPE C.

I want the variable to return "FOLDER\TYPE B" (assumming the email is located in that folder.

Andrew

This conversation is currently closed to new comments.

1 total post (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Collapse -

Folders

by dogknees In reply to What is the folder my lot ...

Andrew,

The NotesDocument object doesn't store the folders it lives in internally, rather, each folder records the documents that live in it.

So, you need to look at the NotesView object for each Folder in your database and the AllDocuments member. If you iterate through the alldocuments collection for each folder, you can then check if the documents UNID matches the one you're looking for, if so, you've found one folder your document is in.

Something that may impact your design is that a document can reside in numerous folders at any time. You'll need to handle this in the code you write.

Regards

Back to Software Forum
1 total post (Page 1 of 1)  

Related Discussions

Related Forums