BeginImportOrganizationRequest Class
Applies To: Dynamics CRM 2015
Contains the data that is needed to begin the asynchronous operation to import an organization.
Namespace: Microsoft.Xrm.Sdk.Deployment
Assembly: Microsoft.Xrm.Sdk.Deployment (in Microsoft.Xrm.Sdk.Deployment.dll)
Inheritance Hierarchy
System.Object
Microsoft.Xrm.Sdk.Deployment.DeploymentServiceRequest
Microsoft.Xrm.Sdk.Deployment.DeferredOperationRequest
Microsoft.Xrm.Sdk.Deployment.BeginImportOrganizationRequest
Syntax
[DataContractAttribute(Name = "BeginImportOrganizationRequest",
Namespace = "https://schemas.microsoft.com/xrm/2011/Contracts/Deployment")]
public class BeginImportOrganizationRequest : DeferredOperationRequest
[DataContractAttribute(Name = "BeginImportOrganizationRequest",
Namespace = "https://schemas.microsoft.com/xrm/2011/Contracts/Deployment")]
public ref class BeginImportOrganizationRequest : DeferredOperationRequest
[<DataContractAttribute(Name = "BeginImportOrganizationRequest",
Namespace = "https://schemas.microsoft.com/xrm/2011/Contracts/Deployment")>]
type BeginImportOrganizationRequest =
class
inherit DeferredOperationRequest
end
<DataContractAttribute(Name := "BeginImportOrganizationRequest",
Namespace := "https://schemas.microsoft.com/xrm/2011/Contracts/Deployment")>
Public Class BeginImportOrganizationRequest
Inherits DeferredOperationRequest
Constructors
Name | Description | |
---|---|---|
BeginImportOrganizationRequest() | Initializes a new instance of the BeginImportOrganizationRequest class. |
Properties
Name | Description | |
---|---|---|
DatabaseName | Gets or sets the database name for the organization. Required. |
|
ExtensionData | Gets or sets the structure that contains extra data.(Inherited from DeploymentServiceRequest.) |
|
FriendlyName | Gets or sets the sets display name, or long name, of the organization database. Optional. |
|
SqlServerName | Gets or sets the name of the Microsoft SQL Server where the Microsoft Dynamics CRM organization database is located. Required. |
|
SrsUrl | Gets or sets the URL of the Microsoft SQL Server on which the Microsoft Dynamics CRM Connector for SQL Server Reporting Services is installed. Required. |
|
UniqueName | Gets or sets the unique name for the organization. Optional. |
|
UserMappingMethod | Gets or sets the mapping method to use to map user accounts from the original server to the new server. Optional. |
|
UserMappingXml | Gets or sets the XML user account mapping rules. Optional. |
Methods
Name | Description | |
---|---|---|
Equals(Object) | (Inherited from Object.) |
|
Finalize() | (Inherited from Object.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
ToString() | (Inherited from Object.) |
Remarks
Usage
Pass an instance of this class to the Execute method, which returns an instance of BeginImportOrganizationResponse.
Notes for Callers
You can also use the Import-CrmOrganization Windows PowerShell command. For more information, see Administer the deployment using Windows PowerShell.
You can use the Get-CrmOperationStatus Windows PowerShell command to check the status of this asynchronous request. Or, you can use the RetrieveRequest message using the OperationId property to set the InstanceTag property.
Examples
BeginImportOrganizationRequest request = new BeginImportOrganizationRequest();
request.DatabaseName = "MyOrgName" + "_MSCRM";
request.SqlServerName = Config.SetupSqlServer;
request.SrsUrl = "http://" + Config.SetupSqlServer + "/reportserver";
Guid operationId = ((BeginImportOrganizationResponse)_deploymentService.Execute(request)).OperationId;
DeferredOperationStatus importOrgOperationStatus = WaitForAsyncOperationAndReturnStatus(operationId);
If (importOrgOperationStatus.State == DeferredOperationState.Completed)
//Do something
Thread Safety
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
BeginImportOrganizationResponse
Microsoft.Xrm.Sdk.Deployment Namespace
Import-CrmOrganization
Get-CrmOperationStatus
Return to top
© 2016 Microsoft. All rights reserved. Copyright