Decline (NotesCalendarNotice - LotusScript®)
Declines a meeting.
Defined in
NotesCalendarNoticeSyntax
Call notesCalendarNotice.Decline( comments$ , [ keepinformedBoolean ] )Parameter | Description |
---|---|
comments |
String. Comments regarding a meeting change. |
keepinformed |
Boolean. Specify true to continue to receive notices about the meeting. |
Possible exception (lsxbeerr.lss) | Value | Text | Description |
---|---|---|---|
lsERR_NOTES_ERR_UNSUPPORTEDACTION |
4811 | Unsupported action | The method is attempting to apply an action that is not valid for the entry. |
lsERR_NOTES_ERR_OVERWRITEDISALLOWED |
4813 | This action is not allowed since it would overwrite personal changes | The action should be verified then reissued with the overwrite flag set. |
lsERR_NOTES_ERR_IDNOTFOUND |
4814 | Identifier not found | The identifier for the NotesCalendarNotice object does not identify a notice in the calendar. |
Examples
This agent declines a meeting.Sub Initialize
Dim session As New NotesSession
Dim maildb As New NotesDatabase("", "")
Dim unid As String
Dim cal As NotesCalendar
Dim caln As NotesCalendarNotice
REM Get calendar for current user
Call maildb.Openmail()
Set cal = session.getCalendar(maildb)
REM Get notice and decline
unid = session.Getenvironmentstring("noticeunid")
Set caln = cal.Getnoticebyunid(unid)
Call caln.Decline("Will be out", True)
End Sub