Sample Code for Deployment Web Service

[Applies to: Microsoft Dynamics CRM 2011]

The following sample shows how to get the deployment service and call the RetrieveAllRequest message.

DeploymentServiceClient service = Microsoft.Xrm.Sdk.Deployment.Proxy.ProxyClientHelper.CreateClient(new Uri("http://MyServerName/XRMDeployment/2011/Deployment.svc"));

RetrieveAllRequest request = new RetrieveAllRequest() {
   EntityType = DeploymentEntityType.DefaultOrganization
};
RetrieveAllResponse response = (RetrieveAllResponse) service.Execute(request);

Windows PowerShell samples can be found in the SDK package at the following folder: SDK\SampleCode\PS.

See Also

Tasks

Sample: Use Deployment Service Messages
Sample: Retrieve, Update and Update Advanced Settings with the Deployment Service
Sample: Add a Deployment Administrator (PowerShell)
Sample: Configure Claims (PowerShell)
Sample: Configure IFD (PowerShell)
Sample: Configure Web Address Settings (PowerShell)
Sample: Create an Organization (PowerShell)
Sample: Create an Organization using an Asynchronous Deployment Request

Other Resources

Deployment Web Service in Microsoft Dynamics CRM

Microsoft Dynamics CRM 2011
Send comments about this topic to Microsoft.
© 2013 Microsoft Corporation. All rights reserved.