RetrieveMailboxTrackingFoldersRequest Class


Applies To: Dynamics CRM 2015

Contains the data needed to retrieve folder-level tracking rules for a mailbox.

Namespace:   Microsoft.Crm.Sdk.Messages
Assembly:  Microsoft.Crm.Sdk.Proxy (in Microsoft.Crm.Sdk.Proxy.dll)

Inheritance Hierarchy



[DataContractAttribute(Namespace = "")]
public sealed class RetrieveMailboxTrackingFoldersRequest : OrganizationRequest
[DataContractAttribute(Namespace = "")]
public ref class RetrieveMailboxTrackingFoldersRequest sealed : OrganizationRequest
[<DataContractAttribute(Namespace = "")>]
type RetrieveMailboxTrackingFoldersRequest = 
        inherit OrganizationRequest
<DataContractAttribute(Namespace := "")>
Public NotInheritable Class RetrieveMailboxTrackingFoldersRequest
    Inherits OrganizationRequest


Name Description
System_CAPS_pubmethod RetrieveMailboxTrackingFoldersRequest()

Initializes a new instance of the RetrieveMailboxTrackingFoldersRequest class.


Name Description
System_CAPS_pubproperty ExtensionData

Gets or sets the structure that contains extra data. Optional.(Inherited from OrganizationRequest.)

System_CAPS_pubproperty Item[String]

Gets or sets the indexer for the Parameters collection.(Inherited from OrganizationRequest.)

System_CAPS_pubproperty MailboxId

Gets or sets the mailbox ID of the user for which you want to retrieve the folder-level tracking rules.

System_CAPS_pubproperty Parameters

Gets or sets the collection of parameters for the request. Required, but is supplied by derived classes.(Inherited from OrganizationRequest.)

System_CAPS_pubproperty RequestId

Gets or sets the ID of an asynchronous operation (system job). Optional. (Inherited from OrganizationRequest.)

System_CAPS_pubproperty RequestName

Gets or sets the name of the request. Required, but is supplied by derived classes.(Inherited from OrganizationRequest.)


Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)


Message Availability

For this message to work, the caller must be connected to the server.


Pass an instance of this class to the Execute method, which returns an instance of the RetrieveMailboxTrackingFoldersResponse class.

Privileges and Access Rights

To perform this action, the caller must have privileges on the Mailbox and MailboxTrackingFolder entities, and access rights on the specified record in the MailboxId property.


The following example shows how to use this message to retrieve folder-level tracking rules for a mailbox. For this sample to work correctly, you must be connected to the server to get an IOrganizationService interface.

// Retrieve the folder mapping rules for a Mailbox
RetrieveMailboxTrackingFoldersRequest req = new RetrieveMailboxTrackingFoldersRequest
    MailboxId = _mailboxId.ToString()

RetrieveMailboxTrackingFoldersResponse resp = (RetrieveMailboxTrackingFoldersResponse)
Console.WriteLine("Retrieved folder-level tracking rules for {0}:", _mailboxName);
int n = 1;
foreach (var folderMapping in resp.MailboxTrackingFolderMappings)
    Console.WriteLine("\tRule {0}: '{1}' is mapped to '{2}'.", 
        n, folderMapping.ExchangeFolderName, folderMapping.RegardingObjectName);

Thread Safety

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.Crm.Sdk.Messages Namespace
Configure Exchange folder-level tracking rules

Return to top

© 2016 Microsoft. All rights reserved. Copyright