Share via


BeginImportOrganizationRequest Class

Definition

Contains the data that is needed to begin the asynchronous operation to import an organization.

public ref class BeginImportOrganizationRequest : Microsoft::Xrm::Sdk::Deployment::DeferredOperationRequest
[System.CodeDom.Compiler.GeneratedCode("System.Runtime.Serialization", "4.0.0.0")]
[System.Diagnostics.DebuggerStepThrough]
[System.Runtime.Serialization.DataContract(Name="BeginImportOrganizationRequest", Namespace="http://schemas.microsoft.com/xrm/2011/Contracts/Deployment")]
public class BeginImportOrganizationRequest : Microsoft.Xrm.Sdk.Deployment.DeferredOperationRequest
[<System.CodeDom.Compiler.GeneratedCode("System.Runtime.Serialization", "4.0.0.0")>]
[<System.Diagnostics.DebuggerStepThrough>]
[<System.Runtime.Serialization.DataContract(Name="BeginImportOrganizationRequest", Namespace="http://schemas.microsoft.com/xrm/2011/Contracts/Deployment")>]
type BeginImportOrganizationRequest = class
    inherit DeferredOperationRequest
Public Class BeginImportOrganizationRequest
Inherits DeferredOperationRequest
Inheritance
Attributes

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

Remarks

Usage

Pass an instance of this class to the Execute(DeploymentServiceRequest) method, which returns an instance of BeginImportOrganizationResponse.

Notes for Callers

You can also use the Import-CrmOrganizationWindows PowerShell command. For more information, see Administer the deployment using Windows PowerShell.

You can use the Get-CrmOperationStatusWindows 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.

Constructors

BeginImportOrganizationRequest()

Initializes a new instance of the BeginImportOrganizationRequest class.

Properties

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 365 organization database is located. Required.

SrsUrl

Gets or sets the URL of the Microsoft SQL Server on which the Microsoft Dynamics 365 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.

Applies to

See also