ParentFolderId (TargetFolderIdType)

Last modified: September 21, 2010

Applies to: Exchange Server 2007 | Exchange Server 2010

The ParentFolderId element identifies the folder in which a new folder is created or the folder to search for the FindConversation Operation.

<ParentFolderId>
   <DistinguishedFolderId/>
</ParentFolderId>

<ParentFolderId>
   <FolderId/>
</ParentFolderId>

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 or the folder that is searched for the FindConversation Operation. 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

FindConversation

Defines a request to find conversations in a mailbox.

Text Value

None.

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 IIS virtual directory that hosts Exchange Web Services of the Client Access server.

Element Information

Namespace

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

Schema Name

Message schema

Validation File

Messages.xsd

Can be Empty

False