Windows Online Support

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Tuesday, 9 December 2008

Using New CrmDeploymentService CRM 4.0.

Posted on 22:22 by Unknown

We have a new webservice in CRM 4.0 i.e. CrmDeploymentService
This is the end-point for this web service
http:///mscrmservices/2007/crmdeploymentservice.asmx

Using CrmDeploymentService we can do the following:
Create/Delete/Disable/Enable/Update/Set Default an organization etc.

There are two types of Microsoft Dynamics CRM deployment entities: Organization and Server. The Deployment SDK provides programmatic access for manipulating the Organization entity. It does not currently enable you to write code against the Server entity for actions such as enabling and disabling a Microsoft Dynamics CRM server.

We have a separate sdk for the Deployement. We can download the sdk at the following location
http://www.microsoft.com/downloads/details.aspx?FamilyId=2874D878-E28D-4530-A185-4DEE1FCDD12E&displaylang=en

When working with the Deployment SDK, you should be familiar with software development practices in general and Microsoft Visual C# or Microsoft Visual Basic coding practices in particular. In addition, you should be familiar with using Web services and have access to a suitable development environment.

When using the Deployment SDK, it is helpful to have the Microsoft Dynamics CRM 4.0 Software Development Kit (SDK) available as a reference.

The Microsoft Dynamics CRM 4.0 SDK is the primary development resource for Microsoft Dynamics CRM 4.0 and is a guide for developers writing server-side code, custom business logic, plug-ins, integration modules, custom workflow modules, and more. The SDK provides an architectural overview of Microsoft Dynamics CRM, the entity model, security model, Web services, and sample code.



Some basic examples of using the service

// Create an instance of CrmDeploymentService
CrmDeploymentService myDeployService = new CrmDeploymentService(); 
myDeployService.Credentials = System.Net.CredentialCache.DefaultCredentials; 
myDeployService.Url = ” valid url”;
 
// To retrieve server license type information 
RetrieveLicenseRequest myLicRequest = new RetrieveLicenseRequest();
RetrieveLicenseResponse myLicResponse = (RetrieveLicenseResponse)myDeployService.Execute(myLicRequest);
MessageBox.Show(“License Type “ + myLicResponse.LicenseType.ToString());

 
// To get the organization information
RetrieveAllRequest myRetriveAllRequest = new RetrieveAllRequest();
 
// only organization is supported ( other is Server)
myRetriveAllRequest.EntityName = EntityName.Organization;
RetrieveAllResponse myRetriveAllResponse = (RetrieveAllResponse)myDeployService.Execute(myRetriveAllRequest);
 
foreach(DeploymentEntity myEntity in myRetriveAllResponse.Entities)
{
Organization myOrganization = (Organization)myEntity;
MessageBox.Show(myOrganization.FriendlyName);
MessageBox.Show(myOrganization.Id.ToString()); 
MessageBox.Show(myOrganization.UniqueName);
}

//// To disable an organization
SetStateOrganizationRequest myOrgSetStateRequest = new SetStateOrganizationRequest();
myOrgSetStateRequest.EntityName = EntityName.Organization;
myOrgSetStateRequest.Id = new Guid(“4c7fc991-0a41-dd11-bfd9-001d7d22e1af”);
myOrgSetStateRequest.State = OrganizationState.Disabled;
SetStateOrganizationResponse myOrgSetStateResponse =(SetStateOrganizationResponse) myDeployService.Execute(myOrgSetStateRequest);
 
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in Deployment Service | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • MS CRM 2011 Beta - Product Keys
    Here are the Product Keys for MS CRM 2011 Beta. The following product keys are available for this release: •Microsoft Dynamics CRM Workgroup...
  • Callout vs. Workflow
    You might find yourself wondering when you should use a pre- or post-callout versus when you should use a workflow rule. As you would expect...
  • Microsoft Dynamics CRM 2011 Release Candidate (RC) Announcement
    The Microsoft Dynamics CRM 2011 Release Candidate (RC) is now available for download from the Microsoft Download Center.  As with the Micros...
  • Declare Global Access Level functions in MS CRM Form.
    Global functions in MS CRM Form. The way CRM adds the javascript to the page, any function defined in the onload event will only have a loca...
  • How to remove the background color of XP Desktop Icon (in Wodows XP)
    In case you are wondering why your Windows XP Desktop Icons have a background, here is a quick guide to restore your transparent background ...
  • Say Hello to the World of Dynamics CRM 2011 Beta version
    Today, the Microsoft Dynamics CRM team has reached a key milestone as it releases the beta of Microsoft Dynamics CRM 2011, for both cloud-ba...
  • Install MS CRM 2011 Beta on Windows 2008 SP2 or Windows 2008 R2?
    I think everybody is consfuse when choosing the Operating System. So here are the facts: 1. You can choose either Windows 2008 SP2 or Window...
  • "Virtual Memory Low"
    “Your system is low on virtual memory” error message when you try to start an application.... Solution : Windows XP 1. Click Start , right-c...
  • Remove / Detach Email from Queue
    DetachFromQueueEmail Message Detaches the e-mail from the specified queue. // Use below code. // Rreplace the WebService URL service.Url = s...
  • Windows Washer v4.5 (Full) (for Windows XP only)
    Download

Categories

  • .NET
  • .NET String Methods
  • Adapters
  • Aggregate Functions
  • All Elements
  • Associated Records
  • Azure
  • BizTalk Adapter
  • Callouts
  • Child Pipeline
  • Crm 2011
  • Crm 2011 Beta
  • Crm 2011 Beta - Ribbons
  • Crm 2011 Beta Installation
  • CRM Online 2011
  • Customizations
  • Database
  • Debug
  • Deployment Service
  • Dynamic Entity
  • Email
  • FetchXml
  • FileSync
  • Form Assistant
  • Hide Button
  • IIS
  • Integration
  • Internet Connectivity
  • ISV
  • Java Script
  • Lead Capture
  • MS CRM
  • MS CRM 2011 RC
  • MS CRM 4 Roll Ups
  • MS CRM 5 Features
  • MS CRM Accelerators
  • MS CRM Entity Schema
  • MS CRM Global Variable and Functions
  • MS CRM Templates
  • Pivot Tables
  • Plugin Constructor
  • Plugins
  • Reports
  • s
  • Save Record
  • SDK
  • Sharepoint
  • Sharepoint 2010
  • Sharing Data Between Plug-ins
  • Social Networking
  • SSRS
  • Tabs
  • Tracing
  • Videos
  • Visual Studio 6
  • VPC
  • WampServer
  • Windows Service
  • Windows XP
  • Workflows
  • xRM

Blog Archive

  • ►  2013 (4)
    • ►  September (4)
  • ►  2012 (8)
    • ►  September (1)
    • ►  July (7)
  • ►  2011 (12)
    • ►  July (1)
    • ►  March (1)
    • ►  February (2)
    • ►  January (8)
  • ►  2010 (27)
    • ►  December (1)
    • ►  October (3)
    • ►  September (10)
    • ►  August (2)
    • ►  July (5)
    • ►  June (5)
    • ►  February (1)
  • ►  2009 (41)
    • ►  December (1)
    • ►  November (5)
    • ►  August (3)
    • ►  July (2)
    • ►  June (3)
    • ►  May (9)
    • ►  April (2)
    • ►  March (5)
    • ►  February (7)
    • ►  January (4)
  • ▼  2008 (33)
    • ▼  December (7)
      • MS CRM 5 – Secure Code on the Server - OnLive
      • List Web Part for Microsoft Dynamics CRM 4.0
      • Using New CrmDeploymentService CRM 4.0.
      • Error message when you log on to any organization ...
      • RollUp 1 release for MS CRM 4.0
      • MS CRM 4.0 upgrade issues list.
      • Increase Attachment size in MS CRM 4.0
    • ►  November (3)
    • ►  October (1)
    • ►  September (7)
    • ►  August (4)
    • ►  July (1)
    • ►  February (4)
    • ►  January (6)
  • ►  2007 (11)
    • ►  October (3)
    • ►  September (1)
    • ►  August (3)
    • ►  July (4)
Powered by Blogger.

About Me

Unknown
View my complete profile