Creating Your First Calendar Item

Creating a basic appointment on the calendar is a straightforward operation. Like all other item types, you create a calendar item by using the CreateItem Web method. Look at Example 8-1 for the most basic example of creating a calendar item.

Example 8-1. Example of creating a calendar item via a CreateItem request

<CreateItem SendMeetingInvitations="SendToNone"
            xmlns=".../messages"
            xmlns:t=".../types">
  <Items>
    <t:CalendarItem>
      <t:Subject>Write Chapter Explaining Calendar Items</t:Subject>
    </t:CalendarItem>
  </Items>
</CreateItem>

As you can see, all you need to do is supply a CalendarItem XML node with a child node of Subject and set the SendMeetingInvitations attribute to SendToNone.[142] (We’ll discuss the SendMeetingInvitations ...

Get Inside Microsoft® Exchange Server 2007 Web Services now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.