NoteID (NotesCalendarNotice - LotusScript®)

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

Defined in

NotesCalendarNotice

Data type

String

Syntax

To get: noteid$ = notesCalendarNotice.NoteID

Examples

This agent displays the Note ID 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(),, "NoteID: " & invite.Noteid
	End If
End Sub