.
HCLSoftware Business Partner
Domino Consulting Services
CRUCIAL Notes Tools
+1
212-599-2048
Domino Consulting Services
CRUCIAL Notes Tools
Domino administration
Notes development
Chat now
.
EN - English
CN - 中文
JP - 日本語
DE - Deutsch
FR - Français
BR - Português
RU - Pу́сский
IT - Italiano
IN - हिन्दी
ES - Español
KR - 한국어
ID - Indonesia
NL - Dutch
TR - Türkçe
SA - العربية
SE - Svenska
NO - Norsk
PL - Polski
TH - ไทย
DK - Dansk
MY - Malay
PH - Filipino
GR - Ελληνικά
FI - Suomi
IL - עברית
IE - Gaeilge
CZ - Čeština
UA - Українська
RO - Română
VN - Tiếng Việt
BD - বাংলা
HU - Magyar
Need a Domino Consultant? Call NotesMail +1 212-599-2048
-
HCLSoftware Business Partner
LOTUSSCRIPT/COM/OLE CLASSES
Examples: Locating a document by ID
This example stores the note ID of each document in a database in a string array, then uses the array in a loop of GetDocumentByID methods to access each document. You can substitute the UniversalID property and GetDocumentByUNID method in the example to use the universal ID.
Sub Initialize
Dim session As New NotesSession
Dim db As NotesDatabase
Dim noteIDs()
Dim collection As NotesDocumentCollection
Dim doc As NotesDocument
Set db = session.CurrentDatabase
Set collection = db.AllDocuments
Redim noteIDs(1 To collection.Count)
Set doc = collection.GetFirstDocument()
Messagebox "count = " & collection.Count
If collection.Count > 0 Then
For j = 1 To collection.Count
noteIDs(j) = doc.noteID
Set doc = collection.GetNextDocument(doc)
Next
Forall noteID In noteIDs
Set doc = db.GetDocumentByID(noteID)
Messagebox doc.Subject(0)
End Forall
End If
End Sub
See Also
Locating a document by ID in LotusScript classes
Feedback on
Help
or
Product Usability
?
Help on Help
All Help Contents
Feedback on
Help
or
Usability
?
Help on Help
All Help Contents