AutoSendNotices (NotesCalendar - Java)

Read-write. Indicates whether to automatically send information to participants when creating and updating meetings.

Defined in



boolean NotesCalendar.getAutoSendNotices()
	throws NotesException
void NotesCalendar.setAutoSendNotices(boolean flag)
	throws NotesException
Legal value Description
true (default) automatically sends information such as invitations and reschedules to participants
false does not automatically send information to participants


This agent creates a meeting calendar entry for today at 1600 UTC, with no notices being sent, and posts its UID to an environment variable.
import lotus.domino.*;

public class JavaAgent extends AgentBase {

    public void NotesMain() {

      try {
          Session session = getSession();
          AgentContext agentContext = session.getAgentContext();

          // (Your code goes here)
          DbDirectory dbdir = session.getDbDirectory("");
          Database maildb = dbdir.openMailDatabase();
          NotesCalendar cal = session.getCalendar(maildb);
          java.text.SimpleDateFormat formatter = new java.text.SimpleDateFormat("yyyyMMdd");
          String today = formatter.format(new java.util.Date());
          String icale = "BEGIN:VCALENDAR\n" +
          "BEGIN:VEVENT\n" +
          "DTSTART:" + today + "T160000Z\n" +
          "DTEND:" + today + "T170000Z\n" +
          "ATTENDEE;ROLE=CHAIR;PARTSTAT=ACCEPTED;CN=\"Roberta Person/Westford/IBM\";\n" +
          "\n" +
          " ;CN=\"Doc Test/Bedford/IBM\";\n" +
          "SUMMARY:Sample Meeting\n" +
          "ORGANIZER;CN=\"Roberta Person/Westford/IBM\"\n" +
          "\n" +
          "END:VEVENT\n" +
          NotesCalendarEntry calentry = cal.createEntry(icale);
          session.setEnvironmentVar("currentuid", calentry.getUID());

      } catch(Exception e) {