UNID (NotesCalendarNotice - LotusScript®)

Read-only. Universal ID of the underlying document for a calendar notice.

Defined in

NotesCalendarNotice

Data type

String

Syntax

To get: unid$ = notesCalendarNotice.UNID

Examples

This agent displays the Note UNID of an invitation.
Sub Initialize
	Dim session As New NotesSession
	Dim maildb As New NotesDatabase("", "")
	Dim cal As NotesCalendar
	Dim dt1 As NotesDateTime
	Dim dt2 As NotesDateTime
	Dim invites As Variant
	Call maildb.Openmail()
	Set cal = session.getCalendar(maildb)
	Set dt1 = session.createdatetime("01/01/2012 00:00 AM")
	Set dt2 = session.createdatetime("Yesterday 00:00 AM")
	invites = cal.Getnewinvitations(dt1, dt2)
	If IsEmpty(invites) Then
		MessageBox "No invitation",, "Nothing"
	Else
		Dim invite As NotesCalendarNotice
		Set invite = invites(0)
		MessageBox invite.Read(),, "UNID: " & invite.Unid
	End If
End Sub