Topic Last Modified: 2008-06-10
The CreateItem element defines a request to create an item in the Exchange store.
<CreateItem MessageDisposition="" SendMeetingInvitations=""> <SavedItemFolderId/> <Items/> </CreateItem>
The following sections describe attributes, child elements, and parent elements.
MessageDisposition
Describes how the item will be handled after it is created. The attribute is required for e-mail messages. This attribute is only applicable to e-mail messages.
SendMeetingInvitations
Describes how meeting requests are handled after they are created. This attribute is required for calendar items.
SaveOnly
The message item is saved in the folder that is specified by the SavedItemFolderId element. Messages can be sent later by using the SendItem Operation. An item identifier is returned in the response. Item identifiers are not returned for any item types except for message items. This includes response objects.
SendOnly
The item is sent but no copy is saved in the Sent Items folder. An item identifier is not returned in the response.
SendAndSaveCopy
The item is sent and a copy is saved in the folder that is identified by the SavedItemFolderId element. An item identifier is not returned in the response.
SendToNone
If the item is a meeting request, it is saved as a calendar item but not sent.
SendOnlyToAll
The meeting request is sent to all attendees but is not saved in the Sent Items folder.
SendToAllAndSaveCopy
The meeting request is sent to all attendees and a copy is saved in the folder that is identified by the SavedItemFolderId element.
SavedItemFolderId
Identifies the target folder where a new item can be created. If the MessageDisposition attribute is set to SendOnly, a created message will only be sent. The message will not be put in the folder that is identified by the SavedItemFolderId element.
Items (CreateItem)
Contains an array of items to create in the folder that is identified by the SavedItemFolderId element.
None.
The schema that describes this element is located in the EWS virtual directory of the computer that is running Microsoft Exchange Server 2007 that has the Client Access server role installed.
Namespace
http://schemas.microsoft.com/exchange/services/2006/messages
Schema Name
Messages schema
Validation File
Messages.xsd
Can be Empty
False