locked
Setting reminder to 'none' RRS feed

  • Question

  • Hello,

     

    I trying to create a meeting with no reminder  using Exchange Web Services. In the create item call, I am setting:

    calendarItem.ReminderIsSet = false;

    calendarItem.ReminderIsSetSpecified = true;


    However, the when the calendarAppointment is created it do have a reminder set; the reminder apparently gets set to the default reminder time specified by the recipients Outlook preferences, in the Tools->Options Dialog, Preferences tab.

    Does anyone know if there is a way to create the appointments the reminder are set to None?

     

    Interestingly, if I try the following,

     

    calendarItem.ReminderIsSet = true;

    calendarItem.ReminderIsSetSpecified = true;

    calendarItem.ReminderMinutesBeforeStart = "120";

     

    Then the appointment have the reminder set at 120 minutes.  So it appears if you do set the reminder, the reminder minutes gets propagated to the appointment (rather than using the default reminder minutes configured in Outlook).

     

    How do I create an appointment, with no reminder?
    Wednesday, March 25, 2009 7:48 AM

Answers

  • I am able to successfully create a meeting with no Reminder set, by setting ReminderIsSet = false and ReminderIsSetSpecified = true (as you describe in your post). Here's the C# used to set meeting properties:

    //create CalendarItemType and set basic properties
    CalendarItemType myAppt = new CalendarItemType();

    myAppt.Subject = "Specifying Reminder is NOT set";
    myAppt.Location = "My Location";

    BodyType bodyType = new BodyType();
    bodyType.BodyType1 = BodyTypeType.Text;
    bodyType.Value = "My Description";
    myAppt.Body = bodyType;

    DateTime dtStart = new DateTime(2009,3,25,20,0,0);
    DateTime dtEnd = dtStart.AddHours(1);
    myAppt.Start = dtStart;
    myAppt.StartSpecified = true;
    myAppt.End = dtEnd;
    myAppt.EndSpecified = true;

    myAppt.ReminderIsSet = false;
    myAppt.ReminderIsSetSpecified = true;

    //add one attendee
    EmailAddressType eat1 = new EmailAddressType();
    eat1.EmailAddress = "user2@contoso.com";
    eat1.Name = "att1";
    AttendeeType at1 = new AttendeeType();
    at1.Mailbox = eat1;

    AttendeeType[] rAtt = new AttendeeType[1];
    rAtt[0] = at1;
    myAppt.RequiredAttendees = rAtt;


    And here's the XML request that gets generated when I call CreateItem:

    <CreateItemType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" SendMeetingInvitations="SendToAllAndSaveCopy">
      <Items xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
        <CalendarItem xmlns="http://schemas.microsoft.com/exchange/services/2006/types">
          <Subject>Specifying Reminder is NOT set</Subject>
          <Body BodyType="Text">My Description</Body>
          <ReminderIsSet>false</ReminderIsSet>
          <Start>2009-03-25T20:00:00</Start>
          <End>2009-03-25T21:00:00</End>
          <Location>My Location</Location>
          <RequiredAttendees>
            <Attendee>
              <Mailbox>
                <Name>attendee1</Name>
                <EmailAddress>user2@contoso.com</EmailAddress>
              </Mailbox>
            </Attendee>
          </RequiredAttendees>
        </CalendarItem>
      </Items>
    </CreateItemType>


    Please verify that your XML request does indeed contain:  <ReminderIsSet>false</ReminderIsSet>. If this doesn't resolve your issue, please post your code and resulting XML request here and I'll investigate further.

    Thanks,
    Kim


    Programming Writer, Microsoft Exchange Developer Documentation Team
    • Marked as answer by ZanZan Friday, March 27, 2009 7:20 AM
    Wednesday, March 25, 2009 10:54 PM

All replies

  • I am able to successfully create a meeting with no Reminder set, by setting ReminderIsSet = false and ReminderIsSetSpecified = true (as you describe in your post). Here's the C# used to set meeting properties:

    //create CalendarItemType and set basic properties
    CalendarItemType myAppt = new CalendarItemType();

    myAppt.Subject = "Specifying Reminder is NOT set";
    myAppt.Location = "My Location";

    BodyType bodyType = new BodyType();
    bodyType.BodyType1 = BodyTypeType.Text;
    bodyType.Value = "My Description";
    myAppt.Body = bodyType;

    DateTime dtStart = new DateTime(2009,3,25,20,0,0);
    DateTime dtEnd = dtStart.AddHours(1);
    myAppt.Start = dtStart;
    myAppt.StartSpecified = true;
    myAppt.End = dtEnd;
    myAppt.EndSpecified = true;

    myAppt.ReminderIsSet = false;
    myAppt.ReminderIsSetSpecified = true;

    //add one attendee
    EmailAddressType eat1 = new EmailAddressType();
    eat1.EmailAddress = "user2@contoso.com";
    eat1.Name = "att1";
    AttendeeType at1 = new AttendeeType();
    at1.Mailbox = eat1;

    AttendeeType[] rAtt = new AttendeeType[1];
    rAtt[0] = at1;
    myAppt.RequiredAttendees = rAtt;


    And here's the XML request that gets generated when I call CreateItem:

    <CreateItemType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" SendMeetingInvitations="SendToAllAndSaveCopy">
      <Items xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
        <CalendarItem xmlns="http://schemas.microsoft.com/exchange/services/2006/types">
          <Subject>Specifying Reminder is NOT set</Subject>
          <Body BodyType="Text">My Description</Body>
          <ReminderIsSet>false</ReminderIsSet>
          <Start>2009-03-25T20:00:00</Start>
          <End>2009-03-25T21:00:00</End>
          <Location>My Location</Location>
          <RequiredAttendees>
            <Attendee>
              <Mailbox>
                <Name>attendee1</Name>
                <EmailAddress>user2@contoso.com</EmailAddress>
              </Mailbox>
            </Attendee>
          </RequiredAttendees>
        </CalendarItem>
      </Items>
    </CreateItemType>


    Please verify that your XML request does indeed contain:  <ReminderIsSet>false</ReminderIsSet>. If this doesn't resolve your issue, please post your code and resulting XML request here and I'll investigate further.

    Thanks,
    Kim


    Programming Writer, Microsoft Exchange Developer Documentation Team
    • Marked as answer by ZanZan Friday, March 27, 2009 7:20 AM
    Wednesday, March 25, 2009 10:54 PM
  • That is very very strange. I tried it last friday, and then when I come into the office today (being sick all week) this code works. Thanks though.
    Friday, March 27, 2009 7:20 AM