Examples: ParentDocumentUNID property

  1. This script displays a message.
    Dim parentUnid As String
    parentUnid = doc.ParentDocumentUNID
    If ( parentUnid = "" ) Then
      Messagebox( "This document has no parent." )
      Messagebox( "The parent's UNID is " + parentUNID )
    End If
  2. This script uses ParentDocumentUNID and the GetDocumentByUNID method in NotesDatabase to find the parent document of a response.
    Dim response As NotesDocument
    Dim parent As NotesDocument
    '...set value of response...
    Set parent = db.GetDocumentByUNID _
    ( response.ParentDocumentUNID )