Share via


Hosted Exchange::GetModifiedOrganizations

This procedure retrieves a list of organizations that have had membership changes in a given timeframe.

Arguments

Input Arguments Required Description

startDate

Yes

Any valid date time.

endDate

Yes

Any valid date time.

preferredDomainController

Yes

FQDN of a domain controller.

maximumRows

No

Maximum number of rows (organizations) that will be returned by the query. The limit is 4096 by default.

Remarks

Method Syntax

public string GetModifiedOrganizations( 
string startDate,  
string endDate, 
string preferredDomainController,  
string maximumRows, 
bool sendCredentials) 
        

Sample Code

Example XML Response

MPS XML Response in string format.

<response> 
  <data> 
    <preferredDomainController>AD01.fabrikam.com</preferredDomainController> 
    <displayName>skier1@blackcomb.com</displayName> 
  </data> 
</response> 
                

Typical C# Usage

//Get user name and password. 
        string userName = this.Request.ServerVariables.Get("AUTH_USER"); 
        string pass = this.Request.ServerVariables.Get("AUTH_PASSWORD"); 
        //Set credentials. 
        hostedExch.PreAuthenticate = true; 
        hostedExch.Credentials = new NetworkCredential(userName,pass); 
 
        lblMsg.InnerHtml = mpsResponseHeaderLabel; 
        //Display response. 
        this.mpsResponse.DocumentSource = ""; 
        response = hostedExch.GetModifiedOrganizations(startDate, endDate, preferredDomainController, maximumRows,sendCredentials); 
                         
        // set the response XML to match the return from MPF 
        responseXml.LoadXml(response); 
        this.mpsResponse.Document = responseXml; 
lblDone.InnerText = successMsg; 
        

Applies To

Hosted Exchange Web Service for:

  • Hosted Messaging and Collaboration version 3.5

  • Hosted Messaging and Collaboration version 3.0

See also

Tasks

Hosted Exchange::GetOrganizationDomains