GetModifiedDocuments (NotesDatabase - LotusScript®)

Gets the documents in a database that are modified since a specified time.

Note: This method is new with Release 7.

Defined in

NotesDatabase

Syntax

Set notesDocumentCollection = notesDatabase .GetModifiedDocuments( [ since ] , [ noteClass% ] )

Parameters

since

NotesDateTime. The start time for collecting the modified documents. Defaults to the creation time of the database effectively returning all documents.

noteClass%

Integer. Constant. One of the following to specify the type or types of document collected. You can combine types with a logical or. Defaults to DBMOD_DOC_DATA which collects only data documents.

  • DBMOD_DOC_ACL (64)
  • DBMOD_DOC_AGENT (512)
  • DBMOD_DOC_ALL (32767)
  • DBMOD_DOC_DATA (1)
  • DBMOD_DOC_FORM (4)
  • DBMOD_DOC_HELP (256)
  • DBMOD_DOC_ICON (16)
  • DBMOD_DOC_REPLFORMULA (2048)
  • DBMOD_DOC_SHAREDFIELD (1024)
  • DBMOD_DOC_VIEW (8)

Return value

noteDocumentCollection

NotesDocumentCollection. A collection containing the modified documents.

Usage

The end time for the collection is the current database time, which is posted to the UntilTime property of the returned NotesDocumentCollection object. This time should be specified as the "since" time in a subsequent call to GetModifiedDocuments where you want to get all modified documents since the most recent call. Do not rely on the system time, which may differ from the database time.

This method raises lsERR_NOTES_NOSUCH_DBGETMODDOCS (4698) "Not a valid GetModifiedDocuments constant" if the noteClass parameter is invalid.

Example