ParentFolderId (Create)

Topic Last Modified: 2007-06-18

The ParentFolderId element identifies the folder in which a new folder is created.

Syntax

<ParentFolderId>
   <DistinguishedFolderId/>
</ParentFolderId>

<ParentFolderId>
   <FolderId/>
</ParentFolderId>

Type

TargetFolderIdType

Attributes and Elements

The ParentFolderId element contains two child elements. The child elements are mutually exclusive in the schema.

Attributes

None.

Child Elements

Element Description

FolderId

Contains the required identifier and the optional change key of a folder in which a new folder is created. Using this element excludes the use of the DistinguishedFolderId element.

DistinguishedFolderId

Identifies default Microsoft Exchange Server 2007 folders. Using this element excludes the use of the FolderId element.

Parent Elements

Element Description

CreateFolder

Defines a request to create a folder in the Exchange database.

The following is the XPath expression to this element: /CreateFolder

CreateItem

Defines a request to create an item in the Exchange database.

Remarks

The two child elements are used to define the folder that will contain the new folder. You must select either the FolderId or the DistinguishedFolderId element to identify the parent folder of the new folder. You cannot use both elements at the same time. This element is required to create folders.

The ParentFolderId element describes the location of existing items and folders.

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.

Element Information

Namespace

https://schemas.microsoft.com/exchange/services/2006/messages

Schema Name

Message schema

Validation File

Messages.xsd

Can be Empty

False