ToFolderId

The ToFolderId element represents the destination folder for a copied or moved item or folder.

<ToFolderId>
   <FolderId/>
</ToFolderId>
<ToFolderId>
   <DistinguishedFolderId/>
</ToFolderId>

TargetFolderIdType

Attributes and elements

The following sections describe attributes, child elements, and parent elements.

Attributes

None.

Child elements

Element Description
FolderId
Contains the identifier of a destination folder for a copied or moved item or folder.
DistinguishedFolderId
Identifies a named destination folder for a copied or moved item or folder.

Parent elements

Element Description
MoveFolder
Defines a request to move a folder in the Exchange store.
The following is the XPath expression to this element:
/MoveFolder
CopyFolder
Defines a request to copy a folder in the Exchange store.
The following is the XPath expression to this element:
/CopyFolder
MoveItem
Defines a request to move an item in the Exchange store.
The following is the XPath expression to this element:
/MoveItem
CopyItem
Defines a request to copy an item in the Exchange store.
The following is the XPath expression to this element:
/CopyItem

Remarks

The schema that describes this element is located in the EWS virtual directory of the computer that is running MicrosoftExchange Server 2007 that has the Client Access server role installed.

Element information

Name Value
Namespace
https://schemas.microsoft.com/exchange/services/2006/messages
Schema Name
Messages schema
Validation File
Messages.xsd
Can be Empty
False

See also