This documentation is archived and is not being maintained.

CreateItem (Task)

Topic Last Modified: 2009-07-16

The CreateItem operation creates task items in the Exchange store.

The following example of a CreateItem request shows how to create a task item in a mailbox.

Starting with Exchange 2007 SP2, Exchange Web Services includes the ability to specify the time zone when you create task items. For more information, see Updating Exchange Web Services Clients for Exchange 2007 SP2.

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi=""
    <t:RequestServerVersion Version="Exchange2007_SP1"/>
      <t:TimeZoneDefinition Id="Eastern Standard Time"/>
    <CreateItem xmlns=""
          <t:Subject>My task</t:Subject>

Requests for recurring tasks are altered when they are received by the computer that is running Microsoft Exchange Server 2007 that has the Client Access server role installed. The following changes occur:

  • Only the date is saved for the StartDate (Recurrence) property of the recurrence range of the task. The time part is truncated.
  • The StartDate (Recurrence) property may be adjusted, depending on the recurrence pattern. For example, if the recurrence pattern is specified as every Monday and the StartDate is set to October 26, 2006, which is a Thursday, StartDate is adjusted to October 30, 2006, which is the next Monday.
  • If the StartDate (Task) property of the task is set, it is updated to match the StartDate (Recurrence) of the recurrence range. The DueDate property of the task is also updated based on the new StartDate (Task).
  • If the StartDate (Task) is not set, only the DueDate property is updated to match the StartDate (Recurrence) of the recurrence range.

The following table shows the changes that the Client Access server makes to a recurring task that has a Task.Recurrence.Pattern of every Monday.

Changes to a recurring task

Property Original Value Updated Value


January 1, 2006

October 30, 2006


January 3, 2006

November 1, 2006


October 26, 2006

October 30, 2006

By default, if a destination folder is not specified, task items are created in the Tasks folder.

The following elements are used in the request:

The following example shows a successful response to the CreateItem request.

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="" 
    <t:ServerVersionInfo MajorVersion="8" MinorVersion="0" MajorBuildNumber="653" MinorBuildNumber="0" 
    <CreateItemResponse xmlns:m="" 
        <m:CreateItemResponseMessage ResponseClass="Success">
              <t:ItemId Id="AAAtAE=" ChangeKey="EwAAABYA"/>