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

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