RetrieveMailboxTrackingFoldersRequest RetrieveMailboxTrackingFoldersRequest RetrieveMailboxTrackingFoldersRequest RetrieveMailboxTrackingFoldersRequest Class

Definition

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

For the Web API use the RetrieveMailboxTrackingFolders Function.

public ref class RetrieveMailboxTrackingFoldersRequest sealed : Microsoft::Xrm::Sdk::OrganizationRequest
[System.Runtime.Serialization.DataContract(Namespace="http://schemas.microsoft.com/crm/2011/Contracts")]
public sealed class RetrieveMailboxTrackingFoldersRequest : Microsoft.Xrm.Sdk.OrganizationRequest
type RetrieveMailboxTrackingFoldersRequest = class
    inherit OrganizationRequest
Public NotInheritable Class RetrieveMailboxTrackingFoldersRequest
Inherits OrganizationRequest
Inheritance
RetrieveMailboxTrackingFoldersRequestRetrieveMailboxTrackingFoldersRequestRetrieveMailboxTrackingFoldersRequestRetrieveMailboxTrackingFoldersRequest
Attributes

Examples

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

var req = new RetrieveMailboxTrackingFoldersRequest { MailboxId = _mailboxId.ToString() };

var resp = (RetrieveMailboxTrackingFoldersResponse)svc.Execute(req); 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); n++; }

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

var req = new RetrieveMailboxTrackingFoldersRequest { MailboxId = _mailboxId.ToString() }; var resp = (RetrieveMailboxTrackingFoldersResponse)svc.Execute(req); 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); n++; }

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) _serviceProxy.Execute(req); 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); n++; }

Remarks

Message Availability

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

Usage

Pass an instance of this class to the Execute(OrganizationRequest) 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.

Constructors

RetrieveMailboxTrackingFoldersRequest() RetrieveMailboxTrackingFoldersRequest() RetrieveMailboxTrackingFoldersRequest() RetrieveMailboxTrackingFoldersRequest()

Initializes a new instance of the RetrieveMailboxTrackingFoldersRequest class.

Properties

ExtensionData ExtensionData ExtensionData ExtensionData

Gets or sets the structure that contains extra data. Optional.

(Inherited from OrganizationRequest)
Item[String] Item[String] Item[String] Item[String]

Gets or sets the indexer for the Parameters collection.

(Inherited from OrganizationRequest)
MailboxId MailboxId MailboxId MailboxId

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

Parameters Parameters Parameters Parameters

Gets or sets the collection of parameters for the request. Required, but is supplied by derived classes.

(Inherited from OrganizationRequest)
RequestId RequestId RequestId RequestId

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

(Inherited from OrganizationRequest)
RequestName RequestName RequestName RequestName

Gets or sets the name of the request. Required, but is supplied by derived classes.

(Inherited from OrganizationRequest)

Applies to